Search This Blog

Thursday, July 25, 2019

Asp .net page life cycle

PreInit   event is the first event fo the page life cycle it check the  IsPostBack Property and determine whether  the page is postback and set theme  and MasterPage

Init: Init event initialize the control property and the control tree is built

InitComplete : InitComplete event allows tracking of view state all the controls turn on view state tracking

PreLoad Its raised when page loads view state and Load PostBackData

Load   Firstly Page calls  the OnLoad Method On Page Objects Then recursively OnLoad for each control is invoked

Load Complete  Page is completely loaded on client side

PreRender Raised  after page object has created all control that are required in order to render page

PreRenderComplete  Raised after each data bound control whose datasourceId property is set calls its databind method

SaveStateComplete  Raised after view stateand control state have been saved for the page and for all control


Unload  this event is first raised  for each control



No comments :