Search code examples
c#asp.netmaster-pagescallcode-behind

Is it possible to make master page get called first instead of the called page - asp.net 4.0


Is it possible to make master page get called first instead of the called page - asp.net 4.0. I mean for example i have home page and i have master page. When i called the home page it goes to the home page code behind first then it goes to the master page code behind. Is it possible to call master page code behind first ?

ASP.net 4.0 , C# thank you


Solution

  • No, this is not possible.

    The hierarchy is that the master page is actually nested within each content page.

    The sequence of events is documented here.