server controls have their own life-cycle same as page life-cycle, but there is minor change in the order they raised events. so, it is very important to understand to order of clontrol's and page life-cycle events and methods.
Init and Unload Events
In simple words,
Init and Unload Events
In simple words,
- it follows BOTTOM-UP approch.
- so, first child control's Init/Unload event will be called.
- then parent control's Init/Unload event will take place.
Load Events
In simple words,
- it follows TOP-DOWN approch.
- so, first parent control's Load event will take place.
- then child control's Load event will be called.
In simple words,
- it behave like child's controls approch.
- so, first Master page's Init Event will be called.
- then child page's Init and Load event will be called.
- at last, Master page's Load Event will be called.
Note :
|
No comments:
Post a Comment