Pages

Monday, April 7, 2008

Page Life-cycle Stages Part 2

Load During load, if the current request is a postback, control properties are loaded with information recovered from view state and control state.

Validation During validation, the Validate method of all validator controls is called, which sets the IsValid property of individual validator controls and of the page.

Postback event handling If the request is a postback, any event handlers are called.

Rendering Before rendering, view state is saved for the page and all controls. During the rendering phase, the page calls the Render method for each control, providing a text writer that writes its output to the OutputStream of the page's Response property.

Unload Unload is called after the page has been fully rendered, sent to the client, and is ready to be discarded. At this point, page properties such as Response and Request are unloaded and any cleanup is performed.

1 comment:

Sandeep said...

good basic stuff...............