Others don't have to say, the appropriate position in Global.asax.cs (what is the specific location, you will look at it, you will understand it!), Add the following content, OK is not nonsense. . . Protected Void Application_BeginRequest (Object Sender, Eventargs E) {Application ["StartTime"] = system.datetime.now;
} Protected void Application_EndRequest (Object sender, EventArgs e) {System.DateTime startTime = (System.DateTime) Application [ "StartTime"]; System.DateTime endTime = System.DateTime.Now; System.TimeSpan ts = endTime - startTime; Response .Write ("
td> tr> table> ");}
转载请注明原文地址:https://www.9cbs.com/read-79562.html New Post(0)
|