top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Dynamic Master Page.

+4 votes
363 views

Can you change a Master Page dynamically at runtime? How?

posted Mar 31, 2014 by Muskan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
 
Best answer

Please note this article on MSDN:

http://msdn.microsoft.com/en-us/library/c8y19k6h.aspx

void Page_PreInit(Object sender, EventArgs e)
{
this.MasterPageFile = "~/NewMaster.master";
}

answer Apr 1, 2014 by Asmita Agrawal
...