ASP Net Project Life Cycle
Every time an ASP.NET page runs it goes through a life cycle. This life cycle is comprised of many processing steps. These stages of the life cycle can be run to achieve your desired effect if the code is written properly.
-
Page Request
-
Before the life cycle begins, the page request occurs. In this stage, ASP.NET determines whether the page should be compiled or parsed.
Start
-
During this stage four things occur. The Response and Request page properties are set, the IsPostBack property is set if the request is a postback or a new request, and the UICulture property is set.
-
Initialization
-
During the Initialization stage, page controls become available, the UniqueID is set, and themes and master pages are applied.
Load
-
In the event the request is a postback, the load stage loads control properties.
Postback Event Handling
-
In the event of a postback, this stage calls the control event handlers and validates the method of validator controls. Finally, this stage sets the IsValid property.
Rendering and Unload
-
Prior to this stage, all controls are in a view state. During this stage, each control undergoes the render control method and output is written to the OutputStream. Unload is the last of the stages and occurs after rendering and after the page has been sent to the client. This stage includes the unloading of page properties and a cleanup.
-