ASP.NET Page Life Cycle Events - ablealias/asp.net GitHub Wiki
The Asp.Net Page life cycle starts when a user request a Web page through a Web browser, then the browser forward the request to the Web server and process the page through a series of stages before returning the result back to the user's browser. These processing stages defines the life cycle of a Web page.
Stage 1 - Page Request
Compile page (if necessary)
Pull page from cache (if available)
Stage 2 - Start
Page properties such as Request and Response are set.
Determine IsPostBack
Stage 3 - Page InIt
Initialize the page controls (but not their properties) - each controls UniqueID property is set.
Apply Page themes
Stage 4 - Load
If PostBack load control properties from ViewState
and control state
Stage 5 - PostBack Events handling
If the request is a PostBack, control event handlers are called, after that, the Validate
method of all validator controls is called.
Stage 6 - Rendering
Save view state for the page and all controls.
Render all controls and output the page.
Stage 7 - Unload
Unload Request and Response
Perform cleanup
Page is ready to be discarded
Sent response to the client