views:

78

answers:

2

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 the order of a few seconds).

A: 

Hi,

There are a series of modules and handlers that run, probably at this point they are initialized.

HTH.

Brian
A: 

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.

William Gross