donderdag, december 15, 2005


dynamic masterpage

I dont like static stuff, so i wanted to set the masterpage dynamically. This is possible, but the timing is critical! must be PreInit!

protected void Page_PreInit(object sender, EventArgs e)

this.Page.MasterPageFile = (string)System.Configuration.ConfigurationManager.AppSettings["masterpagespath"]+ sMyMaster;

Comments: Een reactie posten

Links to this post:

Een link maken

<< Home