Is there anyway to set a Master Page's Master Page programmaticly? Would I need to do this on each page? I don't have access to the pre_init event from Master. Hrm...
+3
A:
void Page_PreInit(Object sender, EventArgs e)
{
this.MasterPageFile = "~/NewMaster.master";
}
Koistya Navin
2009-04-06 14:53:28
+1
A:
In the PreInit function place:
this.MasterPageFile = "~/masterPage.master";
Yes, you will need to put this on each page. To get aroud it, have all the pages inherit from a base Page and place put the master page reference there.
Kevin
2009-04-06 14:54:11
this is the route im going with, so it will look like me.master.masterpagefile
Shawn Simon
2009-04-06 15:28:54