Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,
I'm looking for simple explanation for the following
ASP.NET page life cycle


Explanation with diagram will be helpful.

Thanks in advance
Posted
Comments
Sandeep Mewara 10-May-11 12:26pm    
:doh:

If you put that into google, the no 1 hit is from Microsoft

http://msdn.microsoft.com/en-us/library/ms178472.aspx[^]
 
Share this answer
 
Comments
Abhinav S 10-May-11 8:59am    
What more can the OP ask for. 5.
dhage.prashant01 10-May-11 9:00am    
Yes had been through it, but found it difficult.
If i get it in simple language with diagram, it would be helpful
Dylan Morley 10-May-11 9:01am    
Put 'ASP.NET page life cycle' into google and choose 'Image search'. Loads of diagrams available

IMO - this is the best though, shows you all the events as they occur

http://i.msdn.microsoft.com/dynimg/IC386473.png
Sandeep Mewara 10-May-11 12:27pm    
My 5!
It must have been real difficult for you to find the links! ;)
Hemant__Sharma 11-May-11 1:43am    
Wow. nice link. My 5
in different resources we can get different answers but according to me asp.net page life cycle is

1.Page PreInit event

In this event if you want to do dunamic changes to master page you can do all in this event.

2.Page_Init event

In this all asp.net server control properties are initialized.

3.Page_Load event

All controls are loaded into aspx page

4.Page_PreRender and Page_Render events

All controls are processed in server and redirect to browser understandable code(i.e html) to client and page is executed.

5.Page_unload

All controls are unloaded.

And another way we can see that first time client makes request with .aspx page.

The requested page goes to aspx engine and generate MSIL.

MSIL is Executed by clr

Output goes into cache

and then o/p gives to requsted client.

when the client makes request 2nd time the above process is all not done. clr sees that if it is in cache it will redirect .So Percormance is increased.


I hope it helps you.
 
Share this answer
 
try this link also

Page Life Cyle Video Tutorial[^]
 
Share this answer
 
see this link

This is the best i had ever seen

ASP.NET Application and Page Life Cycle[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900