The page Requst occurs before Asp.net Page Life cycle Begins .
Client Request are passes through the worker processes and http pipeline to Server .
Asp.net page life cycle Begins .
START :
Page Properties Request,Response,IspostBack and UICULTURE are set .
INITIALIZE :
Themes are applied and Uniqueid's are Generated and set for controls .
LOAD :
if the request is postback request then it loads data from viewstate and control state .
VALIDATE :
Updates isVALID PROPERTY .
Validates the pages control .
Page.Validate();
if (Page.IsValid == true)
lblOutput.Text = "Page is Valid!";
else
lblOutput.Text = "Some required fields are empty.";
EVENTS :
This will be only Fire when Request is an Postback .
RENDER :
BEDFORE RENDERING all viewstate data has been saved .
Render method for all controls called and Write the output on outputstream.
unload :
this IS THE LAST EVENT OF ASP.NET LIFE CYCLE.
THIS ENSURES REQUEST AND REPONSE HAS BEEN SENT TO NULL .
http://www.codeproject.com/Articles/20659/The-ASP-NET-Page-Lifecycle-A-Basic-Approach
Client Request are passes through the worker processes and http pipeline to Server .
Asp.net page life cycle Begins .
- S – Start
- I – Initialize
- L – Load
- V – Validate
- E – Event Handling
- R – Render
- Unload
START :
Page Properties Request,Response,IspostBack and UICULTURE are set .
INITIALIZE :
Themes are applied and Uniqueid's are Generated and set for controls .
LOAD :
if the request is postback request then it loads data from viewstate and control state .
VALIDATE :
Updates isVALID PROPERTY .
Validates the pages control .
Page.Validate();
if (Page.IsValid == true)
lblOutput.Text = "Page is Valid!";
else
lblOutput.Text = "Some required fields are empty.";
EVENTS :
This will be only Fire when Request is an Postback .
RENDER :
BEDFORE RENDERING all viewstate data has been saved .
Render method for all controls called and Write the output on outputstream.
unload :
this IS THE LAST EVENT OF ASP.NET LIFE CYCLE.
THIS ENSURES REQUEST AND REPONSE HAS BEEN SENT TO NULL .
http://www.codeproject.com/Articles/20659/The-ASP-NET-Page-Lifecycle-A-Basic-Approach
Comments
Post a Comment