Suresh Kumar
Can you change a Master Page dynamically at runtime? How?
By Suresh Kumar in ASP.NET on Oct 31 2017
  • Sathiya Moorthy
    Dec, 2017 23

    Yes for sure.protected void Page_PreInit(object sender, EventArgs e) {this.MasterPageFile = "~/Site.master"; }

    • 1
  • Sathiya Moorthy
    Dec, 2017 23

    Yes for sure.protected void Page_PreInit(object sender, EventArgs e) {this.MasterPageFile = "~/Site.master"; }

    • 0
  • Suresh Kumar
    Oct, 2017 31

    Yes. To change a master page, set the MasterPageFile property to point to the .master page during the PreInit page event.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS