nested masterpages.
-
Where can I get information on nested masterpages ? Has anyone tried implementing them and what are it's pros cons?
An ASP question, eh? I've used them before, when I want to have a menu in the master, and a sub-menu that only appears on certain pages in the "secondary" master. Just make the primary the master of the secondary, as shown below:
<%@ Master Language="C#" MasterPageFile="~/Master01.Master" AutoEventWireup="true" CodeBehind="Master02.master.cs" Inherits="Namespace.Master02" %>
Then on the page, use the secondary as master (which will also include its master, the primary):
<%@ Page Language="C#" MasterPageFile="~/Master02.master" AutoEventWireup="true"
(etc...) -
An ASP question, eh? I've used them before, when I want to have a menu in the master, and a sub-menu that only appears on certain pages in the "secondary" master. Just make the primary the master of the secondary, as shown below:
<%@ Master Language="C#" MasterPageFile="~/Master01.Master" AutoEventWireup="true" CodeBehind="Master02.master.cs" Inherits="Namespace.Master02" %>
Then on the page, use the secondary as master (which will also include its master, the primary):
<%@ Page Language="C#" MasterPageFile="~/Master02.master" AutoEventWireup="true"
(etc...) -
Oh, I wouldn't do that - cross-posting is frowned upon here.
-
Oh, I wouldn't do that - cross-posting is frowned upon here.