Developers blog, .NET, C#, VB.NET, ATLAS, AJAX, WWF, ORM, LINQ, ARCHITECTURE and more by Frank Kroondijk |
|
ProfileFrank KroondijkSoftware developerSoftware architectBlog profile
Links
Archives
200 feeds |
donderdag, december 15, 2005dynamic 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; } |