Asp.net Page Life Cycle
At each stage of page lifecycle, page raises some events which are:-
- PreInit
- Init
- InitComplete
- LoadViewSTATE
- PreLoad
- Load
- LoadComplete
- PreRender
- PreRenderComplete
- SaveStateComplete
- UnLoad
PreInit
- · 1st event of Page Life Cycle
- · Check IsPostBack Property Whether Page Is PostBack
- · Set Theme and Master Page
- · Control Property is set
- · Control tree is built
- · Allow Tracking of View STATE
- · View State information is loaded
- · This event occurs just before the POSTBack Data is processed
- · First raise for Page then recursively for all the child control.
- · Loading process is completed
- · Control event handler are run
- · Page Validation takes place
- · Just before the output is rendered
- · PreRender is recursively fired for all the child control.
- · HTML markup is generated
- · State of the control on Page is saved
- · Control State and view state information is saved
- · First for all control than for the page itself
Note: The Viewstate is actually loaded in the OnPreLoad event of the page, Just after the page Init complete.
Comments
Post a Comment