开发者

ASP.NET page lifecycle - between constructor and Page_PreInit (the "start stage")

There are plenty of articles that explain the ASP.NET WebForms page lifecycle, but what happens between the constructor in the code-behind page getting called and the Page_PreInit event? MSDN refers to this time as the "start stage" of the page.

I am debugging some code in which there is often a moderate delay between these two events (determined using logging, delay of th开发者_JAVA百科e order of a few seconds).


There are several methods of the Page class that are called before the PreInit event is fired. Maybe one of those is responsible for the delay. See the following illustration, which is on the same page you included in your question: http://msdn.microsoft.com/en-us/library/ms178472.aspx#additional_page_life_cycle_considerations.


the first called function is Constructor.(obviously...)

after this other event will raised.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜