What is page lifecycle for master and content page in asp.net


page life cycle for master and content page in asp.net and page life cycle for master and content page with user control in asp.net This is commonly asked interview questions It will help others...

Here I want to describe different scenarios of page events life cycle.

When your page is inherited from master page, HTML, form & body tags are not allowed in content page.

If your page is inherited from master page then the sequence of event will be as

Case 1:


page life cycle for master and content page in asp.net

Content Page PreInit Event

Master Page Init Event

Content Page Init Event

Content Page Load Event

Master Page Load Event

Case 2:

page life cycle for master and content page with user control in asp.net


Content Page PreInit Event

Master:UserControl Init Event

Master Page Init Event

Content Page Init Event

Content Page Load Event

Master Page Load Event

Master:UserControl Load Event

Case 3:

page life cycle for master page, content page and a web user control on master page and content page on both

Content Page PreInit Event

Page:UserControl Init Event

Master:UserControl Init Event

Master Page Init Event

Content Page Init Event

Content Page Load Event

Master Page Load Event

Page:UserControl Load Event

Master:UserControl Load Event



Thanks
Chiranjita Nayak


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: