ASP.NET event sequence in master page with user control

This is the set up the testing page:

The Page is tied to the MasterPage
The UserControl is on the Page
The Nested UserControl is on the UserControl
The Button is on the Nested UserControl.
Clicking the Button calls the Page.DataBind method

Event sequence:

BeginRequest – HttpModule

AuthenticateRequest – HttpModule
PostAuthenticateRequest – HttpModule
PostAuthorizeRequest – HttpModule
ResolveRequestCache – HttpModule
PostResolveRequestCache – HttpModule
PostMapRequestHandler – HttpModule
AcquireRequestState – HttpModule
PostAcquireRequestState – HttpModule
PreRequestHandlerExecute – HttpModule

PreInit – Page

Init – ChildUserControl
Init – UserControl
Init – MasterPage
Init – Page

InitComplete – Page

LoadPageStateFromPersistenceMedium – Page

ProcessPostData (first try) – Page

PreLoad – Page

Load – Page
Load – MasterPage
Load – UserControl
Load – ChildUserControl

ProcessPostData (second try) – Page

RaiseChangedEvents – Page
RaisePostBackEvent – Page

Click – Button – ChildUserControl

DataBinding – Page
DataBinding – MasterPage
DataBinding – UserControl
DataBinding – ChildUserControl

LoadComplete – Page

PreRender – Page
PreRender – MasterPage
PreRender – UserControl
PreRender – ChildUserControl

PreRenderComplete – Page

SaveViewState – Page
SavePageStateToPersistenceMedium – Page
SaveStateComplete – Page

Unload – ChildUserControl
Unload – UserControl
Unload – MasterPage
Unload – Page

PostRequestHandlerExecute – HttpModule
ReleaseRequestState – HttpModule
PostReleaseRequestState – HttpModule
UpdateRequestCache – HttpModule
PostUpdateRequestCache – HttpModule
EndRequest – HttpModule
PreSendRequestHeaders – HttpModule
PreSendRequestContent – HttpModule

Advertisements
This entry was posted in ASP.NET. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s