2014年6月23日
摘要: select top 20 * from tablewhere id not in(select top 10 id from table) 阅读全文
posted @ 2014-06-23 15:16 不小心而已 阅读(260) 评论(0) 推荐(0) 编辑
摘要: select top 5 * from table order by newid() 阅读全文
posted @ 2014-06-23 15:13 不小心而已 阅读(369) 评论(0) 推荐(0) 编辑
  2014年5月31日
摘要: 无法向会话状态服务器发出会话状态请求。请确保 ASP.NET State Service (ASP.NET 状态服务)已启动,并且客户端端口与服务器端口相同。如果服务器位于远程计算机上,请检查 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\... 阅读全文
posted @ 2014-05-31 16:09 不小心而已 阅读(304) 评论(1) 推荐(0) 编辑
  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 不小心而已 阅读(474) 评论(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) 编辑