ASP.NET: Change the current Master Page
From Wiki
Summary: An example of how you can change the Master Page of your current Content Page
- Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
- Page.MasterPageFile = "othermasterpage.master"
- End Sub
This Hack is part of the ASP.NET Hacks collection


