Tuesday, February 24, 2009

Web Forms Page Processing and Control Execution Lifecycle

I’m giving both a quick reference as well as the MSDN links to the full information here.

Web Forms Page Processing

ASP.NET Page Framework Initialization
The page’s Page_Init event is raised, and the page and control view state are restored.

User Code Initialization
The page’s Page_Load event is raised.

Validation
The Validate method of any validator Web server controls is invoked to perform the control’s specified validation.

Event Handling
If the page was called in response to a form event, the corresponding event handler in the page is called during this stage.

Cleanup
The Page_Unload event is called because the page has finished rendering and is ready to be discarded.

Control Execution Lifecycle

Initialize
Load view state
Process postback data
Load
Send postback change notifications
Handle postback events
Prerender
Save state
Render
Dispose
Unload

No comments:

Post a Comment