摘要: 前台'>删 除后台: protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "del") { //删除的方法 } } 阅读全文
posted @ 2013-10-29 11:11 Mr.Thanks 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 方法一: 方法二:(新闻网这种做法) 阅读全文
posted @ 2013-10-29 11:05 Mr.Thanks 阅读(336) 评论(1) 推荐(1) 编辑
摘要: 后台:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.... 阅读全文
posted @ 2013-10-29 10:58 Mr.Thanks 阅读(213) 评论(0) 推荐(0) 编辑
摘要: //验证合同金额=付款方式总金额+合同押金,不相等给提示 by ltr if (document.getElementById("txt_HeTongMoney").value * 1 != document.getElementById("txt_YaJinMoney").value * 1 + fktotje * 1) { alert("合同金额不等于付款方式总金额加合同押金!"); return false; }var*1:变量*1就成了数字类型了。 阅读全文
posted @ 2013-10-29 10:43 Mr.Thanks 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 脚本:后台:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;us 阅读全文
posted @ 2013-10-29 10:16 Mr.Thanks 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 弹出层和ajax数据交互 添加 添加工作计划 员工: ... 阅读全文
posted @ 2013-10-29 10:01 Mr.Thanks 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 手机:解释:onkeyup="value=value.replace(/[^(\-)+\d+(\.\d*)?$]/g,'');"当输入值的键盘抬起时触发这个事件。this.value表示此输入框的值,/\D/g为正则表达式,用来匹配所有非数字字符;此句功能为:将输入值为非数字的字符替换为空;onblur 失去焦点时触发的事件很少自己写正则了,就不贴正则的规则和用法了,把实例贴上来正则表达式应用——实例应用1.验证用户名和密码:("^[a-zA-Z]\w{5,15}$")正确格式:"[A-Z][a-z]_[0-9]"组成 阅读全文
posted @ 2013-10-29 09:20 Mr.Thanks 阅读(5081) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Web;using System.Text;namespace quanbanjiao{ public class Class1 { /**/ /// /// 判断字符是否英文半角字符或标点 /// /// /// 32 空格 /// 33-47 标点 /// 48-57 0~9 /// 58-64 标点 /// 65-90 A~Z /// 9... 阅读全文
posted @ 2013-09-18 11:55 Mr.Thanks 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 前台://绑定详细内容 function clientInfoShow(clientId,types) { if (!clientId) { return; } $.getJSON("../ajax/MoneyInfoHandler.ashx", { "clientId": clientId,"types":types,"beginDate":$("#txtTime").val(),"endDate":$("#txtEndTime").val() }, f 阅读全文
posted @ 2013-09-17 18:02 Mr.Thanks 阅读(351) 评论(0) 推荐(0) 编辑
摘要: if (!string.IsNullOrEmpty(strQuyu) && !string.IsNullOrEmpty(strZuhao)) { string[] param = { }; dt = proB.GetProcedureTable("pro_jetj", param, "pro_jetj"); } dt.Columns.Add("C"); //循环加入一列的数据 ... 阅读全文
posted @ 2013-09-17 17:47 Mr.Thanks 阅读(715) 评论(0) 推荐(0) 编辑