Applies to : ASP.NET 2.0, Master Pages and Content Pages
Master Page is wonderful concept introduced with .NET 2.0. But also it also adds to the complexity when it comes to dealing with events. In a normal scenario, we have master page with some client side and server side controls and a content page with its own set of client side and server side controls. Well, lets us focus only on Server side functiomality for the time being and let us see the sequence of Events in our scenario.
To limit the scope of events we are going to see only the VERY important events like Init, Load and PreRender, so that it gets handy for developers. The sequence of events are given below :
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.
There are various other events which are not mentioned here for keeping it simple, but I strongly advice you to go through them if you are in design phase and you are considering master pages for your application
|
| Author: Sebastian 13 Jun 2008 | Member Level: Gold Points : 1 |
This is very informative. Thanks for sharing the details.
|