Thursday 31 December 2015

Stages of Page Life-Cycle:


1.     Page Request: This occurs before the page life cycle begins. When the page is requested by a user, Asp.net determines whether the page needs to be parsed and compiled.
2.     Start:
HTTPRuntime – Global.asax is parsed and compiled
PreInit – Check for IsPostback. Create dynamic controls. Set the Master page dynamically. Set Stylesheet theme property. Set culture property. Read and set the profile property values.
3.             Page Initialization:
Page_Init – Read and change control properties. Setup handlers for events. Load external template files.
LoadViewSate() – Specify how ViewState is stored. Specify how ViewState is mapped to the internal state.
4.             Load:
Page_Load – Initial binding will be performed if the page is processed for first time. Read and update control properties.
5.             Validations: Validates information assigned to validation controls.
6.     Event Handling:
Page_DataBinding – Bind data sources to controls.
Page_PreRender – Make final modifications to the page. Change the control tree structure.
SaveViewState -
7.             Rendering:
Page_Render – Make changes to the HTML of the page. Write text for controls of a page.
8.             Unload:
Page_Dispose – Discard objects used in the page.
Page_Unload – Close open files. Close open database connection. Finish logging on other request specific task.

No comments:

Post a Comment

Contact Us:

Email:

Vinodkumar434@gmail.com,
vinodtechnosoft@gmail.com

Skype Name:

vinodtechnosoft