My understanding of the page life cycle is as follows:
Page Page_PreInit
MasterPage Page_Init
Page Page_Init
Page Page_InitComplete
Page Page_PreLoad
Page Page_Load
MasterPage Page_Load
Page_LoadComplete
Page_PreRender
MasterPage Page_PreRender
Page Page_PreRenderComplete
Page Page_SaveStateComplete
MasterPage Page_Unload
Page Page_Unload
Given the above, where does the MasterPage's Load event fire? Google isn't helping as quite a lot of people say Load when talking about the OnLoad event.
Master Page load event is between Content page Load event and Master page controls Load event.
Check the MSDN for details
Although both Init and Load recursively occur on each control, they happen in reverse order. The Init event (and also the Unload event) for each child control occur before the corresponding event is raised for its container (bottom-up). However the Load event for a container occurs before the Load events for its child controls (top-down). Master pages behave like child controls on a page: the master page Init event occurs before the page Init and Load events, and the master page Load event occurs after the page Init and Load events.
MSDN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With