CSDN博客

img colayungnew

ASP.NET中网页的加载时间

发表于2004/12/30 11:08:00  801人阅读

 

protected void Application_BeginRequest(Object sender, EventArgs e)
        {
            Application["start"] = DateTime.Now ;                    }

        protected void Application_EndRequest(Object sender, EventArgs e)
        {
            System.TimeSpan aa = DateTime.Now -(System.DateTime) Application["start"];
           
            Response.Write(aa.TotalSeconds.ToString("#00.000"));
        }


 

0 0

相关博文

我的热门文章

img
取 消
img即使是一小步
也想与你分享
打开
img