C
cevans
Is there a way to load a MasterPage programmatically? Not switch a
page's masterpage but to create a MasterPage object that holds a given
masterpage. So I know I can do:
MasterPage master = new MasterPage();
But there is no way to do something like:
MasterPage master = new MasterPage("~/default.master");
So how does one create an instance of a given MasterPage???
page's masterpage but to create a MasterPage object that holds a given
masterpage. So I know I can do:
MasterPage master = new MasterPage();
But there is no way to do something like:
MasterPage master = new MasterPage("~/default.master");
So how does one create an instance of a given MasterPage???