Asp.net supports the automatic event fire up. This will raise the relevant methods in the code behind to execute automatically since by default the auto event fire up is true.

Preinit:

· Checks whether the page is a post back

· Create or recreate the web controls dynamically

· Set the theme and the master page.

· Set profile property values

Init

· Read and initialize the control properties.

InitComplete

· processing tasks that require all initialization be complete

PreLoad(before the Load)

· loads view state for itself and all controls

· processes any postback data

Load

· Raise OnLoad event method and all the on load events for all the child controls with in the page.

· set properties in controls

· establish database connections (if any)

LoadComplete

· Loads other controls on the page

PreRender

· make final changes to the contents of the page or its controls

SaveStateComplete

· changes to the page or controls at this point will be ignored

· perform tasks to save the view state

Render

· Page object calls this method on each control

· User control automatically incorporates rendering

Unload

· Do final cleanup for specific controls and the page(Close control specific DB connections, closing open files, finishing up logging)

Advertisements