Yes, you can assign a master page dynamically during the PreInit stage using the Page class MasterPageFile property as shown in the code sample below.
void Page_PreInit(Object sender, EventArgs e)
{
this.MasterPageFile = "~/MasterPage.master";
}
Interviews1 answer
1 Answer
Sapna MalikPosted Sep 10, 2009, 2:05 AM EDT
