Search This Blog

Thursday, September 9, 2010

ASP.NET Pagelifecycle

PreInit - First step beforre initialization stage starts.
•Check the IsPostBack property to determine whether this is the first time the page is being processed. •Create or re-create dynamic controls.
•Set a master page dynamically.
•Set the Theme property dynamically.
•Read or set profile property values.

Init - The Init event of individual controls occurs before the Init event of the page.
Use this event to read or initialize control properties.

InitComplete - Only one operation takes place between the Init and InitComplete events: tracking of view state changes is turned on.

PreLoad

Load - The Load event of individual controls occurs after the Load event of the page.

Control events - Use these events to handle specific control events, such as a Button control's Click event or a TextBox control's TextChanged event.

LoadComplete - Raised at the end of the event-handling stage. Use this event for tasks that require that all other controls on the page be loaded.

PreRender

Render - It is not called at page level but at individual control levels.

Unload - Raised for each control and then for page

No comments:

Post a Comment