Login or Sign Up to become a member!

EXPERTS, INFORMATION, IDEAS & KNOWLEDGE

Social bookmarker Add this

ASP.NET: Change the current Master Page

From Wiki

Jump to: navigation, search

Summary: An example of how you can change the Master Page of your current Content Page

  1. Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit  
  2.     Page.MasterPageFile = "othermasterpage.master"  
  3. End Sub


This Hack is part of the ASP.NET Hacks collection

464 Rating: 1.0/5 (1 vote cast)