General Page Life-Cycle Stages
General Page Life-Cycle Stages
Start
Postback event If the request is a postback, any event handlers are called. handling 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 Rendering 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.