如何检测aspx页面的执行速度 检测ASPX页面执行速度的代码如何写呢?(VB) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language="C#" runat=server>//写在Global.asax.vb中//记录请求开始的时间protected void Application_BeginRequest(object sender, EventArgs e){ this.Context.Items["startTime"] = DateTime.Now;}//记录请求结束的时间protected void Application_EndRequest(object sender, EventArgs e){ DateTime dt = (DateTime)this.Context.Items["startTime"]; TimeSpan ts = DateTime.Now - dt; //得出时间差 this.Context.Response.Output.Write( "<br/><font size=1>request processing time: {0}</font>", ts);}要上厕所了,自己转成vb吧,不难的 :) asp.net新闻采集系统 List<T> 如何用?泛型如何用? 在网页上选中一段文字复制,复制到的到底有什么东西? 未将对象引用设置到对象的实例。 为什么debug调试的时候,速度异常的慢,特别特别慢。 大家用QQ的时间多还是E_mail的时间多啊 一个很简单但很让人头疼的问题。 ASP.NET web开发要用到NET Frameowrk4.5吗? 请教高手,看看我的程序,为什么数据不能提交 saucer(思归)!!!高手请进!! 奇怪的问题 .net2002 中ListBox 不能获得选中项 简单问题,又来送分了~~~~~~~~~~~~~~~~~~~~~~~~~
//记录请求开始的时间
protected void Application_BeginRequest(object sender,
EventArgs e)
{
this.Context.Items["startTime"] = DateTime.Now;
}//记录请求结束的时间
protected void Application_EndRequest(object sender,
EventArgs e)
{
DateTime dt = (DateTime)this.Context.Items["startTime"];
TimeSpan ts = DateTime.Now - dt; //得出时间差
this.Context.Response.Output.Write(
"<br/><font size=1>request processing time: {0}</font>",
ts);
}
要上厕所了,自己转成vb吧,不难的 :)