ASP.NET page life cycle
Page Request: When the page is requested by a user, ASP.NET engine determines whether page needs to be parsed or it can directly send the page which is in control or view state.
Start: At this stage, Request and Response objects are set. And in this state itself whether the request is Postback or not is set.
Initialisation:: Controls on the page will be available. Matser page with the theme will be loaded if applicable.
Load: If the current request is a post back, control properties are loaded from the load state or view state.
Postbackeventhandling: If the request is a postback, then the relevant control event handlers will be called. And after that IsValidate is called for validating the the control values based on the request.
Render: Now just before rendering the content on the page, content is loaded into view state. During this stage Render for each control is called by the page.
Unload: After the page is completely rendered and sent to client, Response and Request objects are unloaded and clean up is done.
Start: At this stage, Request and Response objects are set. And in this state itself whether the request is Postback or not is set.
Initialisation:: Controls on the page will be available. Matser page with the theme will be loaded if applicable.
Load: If the current request is a post back, control properties are loaded from the load state or view state.
Postbackeventhandling: If the request is a postback, then the relevant control event handlers will be called. And after that IsValidate is called for validating the the control values based on the request.
Render: Now just before rendering the content on the page, content is loaded into view state. During this stage Render for each control is called by the page.
Unload: After the page is completely rendered and sent to client, Response and Request objects are unloaded and clean up is done.
Comments
Post a Comment