2014年1月3日
摘要: CheckBoxList只读实现: 1) this.checkedListBox1.SelectionMode = SelectionMode.None//web页面中找不到该属性 2) Enable属性是禁用,控件会变灰,只读的效果是不变会,但禁止操作,不一样。 3)只读效果,后台方式 for(inti=0; i<this.CheckBoxList1.Items.Count; i++) { this.CheckBoxList1.Items[i].Attributes["onclick"] = "this.checked=!this.checked" 阅读全文
posted @ 2014-01-03 11:57 不小心而已 阅读(480) 评论(0) 推荐(0) 编辑
摘要: This application is currently offline. To enable the application, remove the app_offline.htm file from the application root directory这是.NET的一个网站暂停机制。如果你的网站需要维护或更新暂停一段时间,你可以在站点的根目录下创建一个app_offline.htm文件,当游客访问你网站的时候,会自动指向该offline页面解决方法:错误提示的后半句就是解决办法,删除根目录下的app_offline.htm文件 阅读全文
posted @ 2014-01-03 11:34 不小心而已 阅读(180) 评论(0) 推荐(0) 编辑
摘要: private void Page_Load(object sender, System.EventArgs e){// 在此处放置用户代码以初始化页面if(this.IsPostBack)return;this.BindTheList();}private void BindTheList(){this.CheckBoxList1.DataSource=this.getDataTable();this.CheckBoxList1.DataTextField="id";this.CheckBoxList1.DataValueField="name";th 阅读全文
posted @ 2014-01-03 11:14 不小心而已 阅读(1529) 评论(0) 推荐(0) 编辑