Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In what order asp.net master pages execute

I m using master page in my project. I want to know the order in which the page loads of both master page and web page executes also about the scripts

like image 847
Tech Avatar asked Jan 26 '26 02:01

Tech


1 Answers

  1. Master page child controls initialization: All server controls contained within the master page are first initialized.
  2. Content page child controls initialization: All server controls contained in the content page are initialized.
  3. Master page initialization: The master page itself is initialized.
  4. Content page initialization: The content page is initialized.
  5. Content page load: The content page is loaded (this is the Page_Load event followed by the Page_LoadComplete event).
  6. Master page load: The master page is loaded (this is also the Page_Load event).
  7. Master page child controls load: The server controls on the master page are loaded onto the page.
  8. Content page child controls load: The server controls on the content page are loaded onto the page.

http://it.toolbox.com/blogs/coding-dotnet/events-in-master-page-content-pages-16262

like image 113
Madhur Ahuja Avatar answered Jan 28 '26 16:01

Madhur Ahuja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!