![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have placed Trace.Write() at the begining of the Page_Load method. Here is trace log: aspx.page Begin Init aspx.page End Init 0.005577 0.005577 aspx.page Begin LoadViewState 0.005611 0.000035 aspx.page End LoadViewState 0.005702 0.000091 aspx.page Begin ProcessPostData 0.005720 0.000018 aspx.page End ProcessPostData 0.007424 0.001704 Page_Load begin 0.055457 0.048033 Page_Load end 0.299973 0.244515 aspx.page Begin ProcessPostData Second Try 0.300013 0.000040 aspx.page End ProcessPostData Second Try 0.300037 0.000024 .... What happens after "End ProcessPostData" and before "Begin Page_Load"? It takes too much time (0.048033). But the real problem is that sometimes it can take up to 7-10 seconds!!! It's not acceptable. In according to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-pageobjectmodel.asp Page_Load executes immediately after ProcessPostData. |
#3
| |||
| |||
|
|
Here is more detailed trace log: aspx.page Begin Init DimensionTreeView Begin OnInit 0.000030 0.000030 DimensionTreeView End OnInit 0.005146 0.005116 aspx.page End Init 0.005195 0.000049 aspx.page Begin LoadViewState 0.005211 0.000016 aspx.page End LoadViewState 0.005301 0.000090 aspx.page Begin ProcessPostData 0.005318 0.000018 aspx.page End ProcessPostData 0.005374 0.000056 aspx.page begin OnLoad 0.005391 0.000017 Page_Load begin 9.208083 9.202692 Page_Load end 9.451887 0.243804 aspx.page end OnLoad 9.451926 0.000039 aspx.page Begin ProcessPostData Second Try 9.451944 0.000018 aspx.page End ProcessPostData Second Try I have override Page.OnLoad method: protected override void OnLoad(EventArgs e) { Trace.Write("aspx.page", "begin OnLoad"); base.OnLoad (e); Trace.Write("aspx.page", "end OnLoad"); } So slowing down occurs in Page.OnLoad method. I have only one event handler for "Load" event - Page_Load. "Man Manovich" <manovich (AT) ua (DOT) fm> wrote in message news:uZEOkWsqEHA.3976 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I have placed Trace.Write() at the begining of the Page_Load method. Here is trace log: aspx.page Begin Init aspx.page End Init 0.005577 0.005577 aspx.page Begin LoadViewState 0.005611 0.000035 aspx.page End LoadViewState 0.005702 0.000091 aspx.page Begin ProcessPostData 0.005720 0.000018 aspx.page End ProcessPostData 0.007424 0.001704 Page_Load begin 0.055457 0.048033 Page_Load end 0.299973 0.244515 aspx.page Begin ProcessPostData Second Try 0.300013 0.000040 aspx.page End ProcessPostData Second Try 0.300037 0.000024 .... What happens after "End ProcessPostData" and before "Begin Page_Load"? It takes too much time (0.048033). But the real problem is that sometimes it can take up to 7-10 seconds!!! It's not acceptable. In according to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-pageobjectmodel.asp Page_Load executes immediately after ProcessPostData. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |