摘要:
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... 阅读全文
摘要:
Reference : http://blog.csdn.net/wang8712/archive/2008/04/18/2303340.aspx 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
using System.Text.RegularExpressions; detect a URL: Regex urlregex = new Regex(@"(http:"/"/(["w.]+"/?)"S*)", RegexOptions.IgnoreCase|RegexOptions.Compiled); regex for Detecting u... 阅读全文
摘要:
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... 阅读全文
摘要:
显示时间的格式很多,现总结如下: Format Description Example d Short date ... 阅读全文
摘要:
使用 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... 阅读全文
摘要:
#pragma warning disable 1699 [assembly:AssemblyKeyFile("MyKey.snk")] #pragma warning restore 1699 阅读全文
摘要:
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. 阅读全文