Arjun Panwar
Can you change a Master Page dynamically at runtime?
Posted by Arjun Panwar in ASP.NET Programming on Nov 08, 2012
  • 0
  • 2
  • 1367
Do you know the answer for this question? Post it below.
Guest
Posted by Rakesh Shinde on Apr 23, 2013
  • 0

Yes..by this.masterpagefile=""

Posted by Yogesh Sharma on Nov 20, 2012
  • 0

protected void Page_PreInit(object sender, EventArgs e)
{
if (Membership.GetUser() == null) //check the user weather user is logged in or not
this.Page.MasterPageFile = "~/General.master";
else
this.Page.MasterPageFile = "~/myMaster.master";
}


Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS