Pradeep
Can you dynamically assign a Master Page?
By Pradeep in ASP.NET on Sep 10 2009
  • Sapna Malik
    Sep, 2009 10

    Yes, you can assign a master page dynamically during the PreInit stage using the Page class MasterPageFile property as shown in the code sample below.
    void Page_PreInit(Object sender, EventArgs e)
    {
    this.MasterPageFile = "~/MasterPage.master";
    }

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS