Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. nested masterpages.

nested masterpages.

Scheduled Pinned Locked Moved C#
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FEMDEV
    wrote on last edited by
    #1

    Where can I get information on nested masterpages ? Has anyone tried implementing them and what are it's pros cons?

    P 1 Reply Last reply
    0
    • F FEMDEV

      Where can I get information on nested masterpages ? Has anyone tried implementing them and what are it's pros cons?

      P Offline
      P Offline
      Paladin2000
      wrote on last edited by
      #2

      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...)

      F 1 Reply Last reply
      0
      • P Paladin2000

        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...)

        F Offline
        F Offline
        FEMDEV
        wrote on last edited by
        #3

        thanks timothy, well pointed i'll shift to the asp.net MB

        P 1 Reply Last reply
        0
        • F FEMDEV

          thanks timothy, well pointed i'll shift to the asp.net MB

          P Offline
          P Offline
          Paladin2000
          wrote on last edited by
          #4

          Oh, I wouldn't do that - cross-posting is frowned upon here.

          F 1 Reply Last reply
          0
          • P Paladin2000

            Oh, I wouldn't do that - cross-posting is frowned upon here.

            F Offline
            F Offline
            FEMDEV
            wrote on last edited by
            #5

            uh oh..!!! done it already :^) apologies to admin

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups