Author: zfive5 (zhaozidong) email: zfive5@yahoo.com.cn
On the afternoon, "Aspx.NET Advanced Programming" is also written again, such a good feature should let more people know. Add <% @ page travel = "true"%> in the .aspx file, then execute the ASPX file, you will see more information under the original interface, request details, track information, control tree, cookie collection, standard Head collection and server variables.
ASPX code:
Private void page_load (Object sender, system.eventargs e) {// Place the user code here to initialize the page Trace.Write ("trace1"); Trace.Warn ("WARN1"); Trace.write ("trace2") After the execution, the TRACE tracking information section is as follows:
Type Message From First (s) From Last (s) aspx.page Begin Init aspx.page End Init 0.001612 0.001612 Trace1 0.002763 0.001150 Warn1 0.003155 0.000393 Trace2 0.003240 0.000085 aspx.page Begin PreRender 0.003287 0.000047 aspx.page End PreRender 0.003331 0.000044 aspx.page Begin SaveviewState 0.003636 0.000305 Asp.page end SaveViewState 0.004491 0.00856 Asp.page Begin Render 0.004559 0.000068 Asp.page End Render 0.051202 0.046643
Yes, even the execution time is output.
After seeing the cookie information of Trace output, then look at the session ID, the value is the same, it seems that the session of ASP.NET is implemented with cookie!