Arjun Panwar
Can you change a Master Page dynamically at runtime?
Posted by Arjun Panwar in .Net | ASP.NET on Nov 08, 2012
  • 0
  • 2
  • 627
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"; }


Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2013© C# Corner. All contents are copyright of their authors.