You must Sign In to post a response.
  • Category: ASP.NET

    How to load dynamic master page?

    Which ASP.NET page cycle will follow for loading dynamic mater pages?
  • #763292

    If you want to load your master page dynamically then do it as like below..

    Protected void Page_PreInit(object sender, EventArgs e)
    this.MasterPageFile = "~/yourmasterpage.master";

    Hope this will helpful to you...

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #763316
    Yes correct you can handle it in "Page_PreInit"
    By Nathan
    Direction is important than speed

Sign In to post your comments