
asp.net学习之路
bushido
这个作者很懒,什么都没留下…
展开
-
取得页面执行时间的代码
取得页面执行时间的代码在Global.asax.cs文件中protected void Application_BeginRequest(Object sender, EventArgs e){ Application["StartTime"] = System.DateTime.Now; }protected void Application_EndRequest(Object sender原创 2004-09-08 13:46:00 · 1049 阅读 · 0 评论 -
清理html元素
string s=你要清理的字符串;s=Regex.Replace(s,@"/]*/>","",RegexOptions.Multiline);现在的字符串s就是清理了所有的<>内容的了,前提是你的html元素没有错误的嵌套原创 2004-11-23 15:55:00 · 1007 阅读 · 0 评论