Its hard to remember all the stages of an Asp.Net page’s life-cycle. So being able to group them into 3 stages is a useful way for looking at them:
- Initialisation
- Event Handler Execution
- Rendering
Initialization
- PreInit (Controls are available. Ids are set)
- Init
- InitComplete
Event Handler Execution
- Preload
- Load (During a post-back, control properties are available here and loaded from view state)
- Controls events (If a post-back call, events are fired and validation is performed by calling the Validate methods on each validator control – setting the IsValid property)
- Load Complete
Rendering
- PreRender (databind method is called here)
- SaveState
- Render
- Unload
More information: MSDN: ASP.Net Page Life Cycle
No comments:
Post a Comment