2009年4月29日
摘要: Vs2008 provides a lot of snippets to improve the coding speed, some are inherited from vs2003 and vs 2005. I will summarize them in this tech article. usage: type snippet eg: ctor then press [Tab] key... 阅读全文
posted @ 2009-04-29 14:26 蔡春升 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Reference : http://blog.csdn.net/wang8712/archive/2008/04/18/2303340.aspx 阅读全文
posted @ 2009-04-29 14:25 蔡春升 阅读(138) 评论(0) 推荐(0) 编辑
摘要: MapPath function is commonly used in Asp.net. But if you want to used in other projects like DLL project, User difined control, you should reference System.Web namespace and call HttpContext.Current.S... 阅读全文
posted @ 2009-04-29 14:25 蔡春升 阅读(156) 评论(0) 推荐(0) 编辑
摘要: It's boring and confused when we always insert nodes in appSettings. so let's defined ourselves nodes in Web.config first: we add new node in configSections. for example, we add a new node Standar... 阅读全文
posted @ 2009-04-29 14:24 蔡春升 阅读(168) 评论(0) 推荐(0) 编辑
摘要: using System.Text.RegularExpressions; detect a URL: Regex urlregex = new Regex(@"(http:"/"/(["w.]+"/?)"S*)", RegexOptions.IgnoreCase|RegexOptions.Compiled); regex for Detecting u... 阅读全文
posted @ 2009-04-29 14:23 蔡春升 阅读(152) 评论(0) 推荐(0) 编辑
摘要: i met an strange problem when building a test website in iis. exploring in the event viewer, i found several errors: 1>Failed to initialize the AppDomain:/LM/W3SVC/1/Root/Test Exception: System.IO.F... 阅读全文
posted @ 2009-04-29 14:22 蔡春升 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 显示时间的格式很多,现总结如下: Format Description Example d Short date ... 阅读全文
posted @ 2009-04-29 14:21 蔡春升 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 使用 DataTable.Columns.Contains方法可以判断某个列名是否存在于某个DataTable中 DataTable t = new DataTable(); DataColumn col = new DataColumn("aaa"); t.Columns.Add(col); col = new DataColumn("bbb"); t.Columns.Add(col); col... 阅读全文
posted @ 2009-04-29 14:20 蔡春升 阅读(1198) 评论(1) 推荐(0) 编辑
摘要: #pragma warning disable 1699 [assembly:AssemblyKeyFile("MyKey.snk")] #pragma warning restore 1699 阅读全文
posted @ 2009-04-29 14:17 蔡春升 阅读(178) 评论(0) 推荐(0) 编辑
摘要: try this one run cmd vs 2008 provided. go to vs 2008 location eg: C:\\Program Files\Microsoft Visual Studio 9.0\Common7\IDE devenv /log c:"ActivityLog.xsl open related solution. build it. 阅读全文
posted @ 2009-04-29 14:16 蔡春升 阅读(219) 评论(0) 推荐(0) 编辑