The ASP.Net Page Life Cycle is described on a couple of blogs such as this detailed description (including achart and code). The description, however, usually deals with the life cycle during runtime.
But what about the design time behavior of compiled user controls?
I took the code from Justin’s Blog (first link) to trace the events triggered in DesignMode, and, after a bit of adjustment, found the following DesignMode life cycle:
Open a page containing the compiled ascx in Visual Studio designer
- Construct
- public property setters (for properties set in the ascx)
- ResolveAdapter
- OnInit
- TrackViewState
- CreateControlCollection
Navigate to the control in designer
- all public property getters
- public property setter (as you edit a property value in designer)
Close the page in designer
- OnUnload
Pingback: Series: ASP.Net User Control Libraries « devioblog
Pingback: ASP.Net 4 Page Life Cycle « devioblog