Ever faced the question about ASP.NET page life cycle in interview... pretty easy... but if MasterPage comes in... it makes it slight difficult... isn't it??? and what if the controls are present on the page.. and few on MasterPage... things are getting tough... isn't it...
To make the thinks easier just go through the chronological order of the events that are followed from pre-init to unload...
Following is the order of events of an ASP.NET page when using master page... read on...
To make the thinks easier just go through the chronological order of the events that are followed from pre-init to unload...
Following is the order of events of an ASP.NET page when using master page... read on...
- Page PreInit
- MasterPageControl Init
- PageControl Init
- MasterPage Init
- Page Init
- Page ViewStateLoad
- MasterPage ViewStateLoad
- Page PreLoad
- Page Load
- MasterPage Load
- MasterPageControl Load
- PageControl Load
- PageControl Event
- MasterPage BubbleEvent
- Page BubbleEvent
- PageLoad Complete
- Page Prerender
- MasterPage PreRender
- MasterPageControl PreRender
- PageControl PreRender
- Page PreRenderComplete
- MasterPage ControlStateSave
- Page ControlStateSave
- Page ViewStateSave
- MasterPage ViewStateSave
- Page SaveState
- MasterPageControl Unload
- PageControl Unload
- MasterPage Unload
- Page Unload
0 comments:
Post a Comment