摘要:2010-06-02 15:44:51|分类: .net 阅读384 评论0 字号:大中小订阅 控制Asp.net的Button控件的提交动作 asp.net开发中,通常需要做一些客户端验证。当我们默认在一个页面中加个button控件时,这个Button被asp.net输出为一个Submit按钮。<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />查看前台的HTML源码是:<input ty
阅读全文
摘要:Response.Cookies["userName"].Value = "patrick"; Response.Cookies["userName"].Expires = DateTime.Now.AddDays(1); HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString...
阅读全文
摘要:感觉有点常用就总计了一下,以后会陆续添加 1. //html的checkbox,操纵CheckBoxList 全选,反选 //地区全选和反选 function checkBoxList(obj,id) { var cbl =document.getElementById (id); for(i =...
阅读全文
摘要:1.绑定DropDownList public void FillCBL(DataSet ds,CheckBoxList cbl) { if (ds != null) { if (ds.Tables[0].Rows.Count > 0) { for (int i = 0; i ...
阅读全文