I was planning to post this blog quite a few weeks earlier but could not do so because of pretty tight schedule. I was pretty surprised to find out the amount of things that may go on behind the scenes when an .aspx page is loaded. I may skip a few sections as I did not feel that they were that important. However any sincere suggestion will be accepted.
The first in the long sequence loading of a .aspx page
- Pre Init
ü No master page , theme is still associated.
ü Page Scroll position is restored.
ü Posted data is available.
ü Page Controls are instantiated.
ü Controls do not have any ID yet.
ü Changing the master page is possible programmatically.
ü IsCallBack, IsCrossPostBack, IsPostBack are set now.
- Init
ü Master page, if present , is set and cannot be changed anymore.
ü The Process Request method operates on the Page class and sets all the Ids of the controls.
ü ViewState is not yet restored.
- InitComplete
ü Tracking ViewState change is turned ON for all controls.
- ViewState Restoration
ü __VIEWSTATE hidden field is restored.
ü LoadViewState() loads the viewstate.
- Processing Posted Data
ü All client data packed in HTTP request are processed.
ü Control values are set.
- Preload
ü Indicates that a page has terminated system level initialization.
- Load
ü Page tree is created here.
- Handling Dynamically Created Controls
ü Process the dynamically created controls
- LoadComplete
- PreRender
ü Perform any updates before any output is rendered.
- PreRenderComplete
- SaveStateComplete
ü Saves the ViewState.
13. Unload.
Cheers......