Click here to Skip to main content
15,886,049 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hi, i would like to understand the page load life cycle in web application. i know the page life cycle of a page in web application but what would be the behavior of events between master page , content page , custom control etc..
Posted

 
Share this answer
 
Comments
ravikhoda 29-Jan-14 1:01am    
one more thing, what is the difference between body onload method and server side page load methods.

one is javascript side page load and other is server side. how will the page behave in both cases?
JoCodes 29-Jan-14 1:10am    
Yes , as you told the main difference is client side and server side event. The Server side code executes and then creates/render the Page back to the client.
 
Share this answer
 
Refer - [MSDN] Events in ASP.NET Master and Content Pages[^].
Quote:
  1. Content page PreInit event.

  2. Master page controls Init event.

  3. Content controls Init event.

  4. Master page Init event.

  5. Content page Init event.

  6. Content page Load event.

  7. Master page Load event.

  8. Master page controls Load event.

  9. Content page controls Load event.

  10. Content page PreRender event.

  11. Master page PreRender event.

  12. Master page controls PreRender event.

  13. Content page controls PreRender event.

  14. Master page controls Unload event.

  15. Content page controls Unload event.

  16. Master page Unload event.

  17. Content page Unload event.

 
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