随笔分类 -  ASP.NET

ASP.NET相关知识
asp.net里面button的submit,or usesubmitbehavior property (转载)
摘要: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 阅读全文

posted @ 2011-06-22 11:21 丛林之王 阅读(1589) 评论(0) 推荐(0)

Cookie常用
摘要:Response.Cookies["userName"].Value = "patrick"; Response.Cookies["userName"].Expires = DateTime.Now.AddDays(1); HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString... 阅读全文

posted @ 2008-05-14 09:36 丛林之王 阅读(288) 评论(0) 推荐(0)

CheckBoxList的相关操作
摘要:感觉有点常用就总计了一下,以后会陆续添加 1. //html的checkbox,操纵CheckBoxList 全选,反选 //地区全选和反选 function checkBoxList(obj,id) { var cbl =document.getElementById (id); for(i =... 阅读全文

posted @ 2008-04-25 14:30 丛林之王 阅读(256) 评论(0) 推荐(0)

DropDownList的相关操作
摘要:1.绑定DropDownList public void FillCBL(DataSet ds,CheckBoxList cbl) { if (ds != null) { if (ds.Tables[0].Rows.Count > 0) { for (int i = 0; i ... 阅读全文

posted @ 2008-04-25 14:24 丛林之王 阅读(242) 评论(0) 推荐(0)

导航