Event Order of Master Pages

Posted Monday, December 19, 2005 8:58 AM by C-Dog's .NET Tip of the Day
As if ASP.NET Page events weren't complicated enough.  Throw master pages into it and it gets even worse.  Here is the sequence of some of the events when using a Master Page.
  1. Master page controls Init event.
  2. Content controls Init event.
  3. Master page Init event.
  4. Content page Init event.
  5. Content page Load event.
  6. Master page Load event.
  7. Content controls Load event.
  8. Content page PreRender event.
  9. Master page PreRender event.
  10. Master page controls PreRender event.
  11. Content controls PreRender event.

This is a bit complicated, but hopefully this reference will help in the future.  More info can be found here.

Read the complete post at http://www.dotnettipoftheday.com/blog.aspx?id=3