上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3574154.html]现象:公有静态变量不可用于ASP.NET多用户操作,否则该变量会被多用户改写,导致错误。参考:http://blog.csdn.net/dobly/article/details/54826解决:可以使用public static Dictionary来实现多用户互斥操作。其中key存放唯一的用户登录ID,value存放数据内容。e.g.Global.aspx.cs: 1 public static class Global 2 { 3 public stat... 阅读全文
posted @ 2014-02-28 18:29 一篮饭特稀 阅读(898) 评论(2) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3519318.html] 1 $("#dialog").dialog({ 2 autoOpen: false, 3 height: 150, 4 width: 200, 5 modal: true, 6 draggable: false, 7 resizable:false, 8 ... 阅读全文
posted @ 2014-01-14 16:42 一篮饭特稀 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3412796.html]在NET 2.0以上版本提供了一种新的方法 就是加问号,DateTime? :表示可空类型,就是一种特殊的值类型,它的值可以为nullModel:1 private DateTime? _registrationtime;2 public DateTime? RegistrationTime3 {4 set{ _registrationtime=value;}5 get{return _registrationtime;}6 }Global.cs: 1... 阅读全文
posted @ 2013-11-07 16:55 一篮饭特稀 阅读(4453) 评论(0) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3371620.html]Ctrl+Shift+H查找内容\r\n\r\n //如果要替换换行前有空格的空行则 [^\S\r\n]\r\n替换内容\r\n查找范围-当前项目查找选项-使用正则表达式查找文件类型-*.cs多次点击全部替换 阅读全文
posted @ 2013-10-16 10:11 一篮饭特稀 阅读(871) 评论(0) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3284481.html]PostLogin :登录,并保存Cookie 1 public static string PostLogin(string postData, string requestUrlString, ref CookieContainer cookie) 2 { 3 ASCIIEncoding encoding = new ASCIIEncoding(); 4 byte[] data = encoding.GetBytes(po... 阅读全文
posted @ 2013-08-27 11:09 一篮饭特稀 阅读(3005) 评论(2) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3237772.html]在导入Excel读取数据时,其中的一个字段保存的值有如下格式:"2011072014","20110Aad10","25124Adfa","例子asdfadf" 这样的混合了 "字母/数字/中文"数据,在Excel表格中的前 8条 数据中的 这个列中的数据都是 由纯数字组成的,如"2011072012","2011072013", 阅读全文
posted @ 2013-08-05 11:03 一篮饭特稀 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3228240.html] 1 using System; 2 using System.Data; 3 using System.IO; 4 using System.Windows.Forms; 5 using Excel = Microsoft.Office.Interop.Excel; 6 using System.Collections.Generic; 7 8 namespace PlaneExcel 9 { 10 static class Expor... 阅读全文
posted @ 2013-07-31 17:13 一篮饭特稀 阅读(282) 评论(0) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3227351.html] 1 private void ChangBackColor() 2 { 3 if (dataGridView1.Rows.Count > 0) 4 { 5 foreach (DataGridViewRow row in dataGridView1.Rows) 6 { 7 if (row.Cells["列名"].Value.ToString() == "条件") 8 { 9... 阅读全文
posted @ 2013-07-31 11:18 一篮饭特稀 阅读(3337) 评论(0) 推荐(0) 编辑
摘要: 工具-排序-移除重复 阅读全文
posted @ 2013-06-24 17:58 一篮饭特稀 阅读(135) 评论(0) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2013/04/24/3040219.html]File-Properties-Resource-Text file coding-Other-UTF8-Apply 阅读全文
posted @ 2013-04-24 14:56 一篮饭特稀 阅读(705) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页