Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 577931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:12:24+00:00 2026-05-13T14:12:24+00:00

I have a SharePoint 2007 Server and want to create a site with a

  • 0

I have a SharePoint 2007 Server and want to create a site with a nested Master Page.

I created a new Master Page, test.master:

<%@ Master MasterPageFile="~masterurl/default.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    Test123
    <b>
    <asp:ContentPlaceHolder runat="server" ID="TestPH" Visible="true" />
    </b>
</asp:Content>

I then created a new Page, Test.aspx

<%@ Page MasterPageFile="test.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TestPH" runat="server">
    TestChild
    <asp:Label Text="Test" runat="server" />
</asp:Content>

I uploaded both test.master and test.aspx to a newly created blank site using SharePoint Designer.

When I call Test.aspx, I only see Test123 from the test.master – it seems to ignore the placeholder. The HTML Output (including an excerpt from the Sharepoint default.master):

<td class='ms-bodyareaframe' valign="top" height="100%">
    <A name="mainContent"></A>
    Test123
    <b>

    </b>
</td>

Now, when I go into Test.aspx and change it’s masterpage to default.master and TestPH to PlaceHolderMain, I correctly see TestChild Test, so the page itself works.

Neither the Master nor the ASPX page contain CodeBehind yet, and thus no change to web.config was made (SafeControls…)

I wonder if I need to enable something to allow nested master pages, or if SharePoint 2007 as usual demands the sacrifice of a goat on it’s altar…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:12:24+00:00Added an answer on May 13, 2026 at 2:12 pm

    There is something about the way SharePoint treats the master-page token. This is because they allow you to load master page from the database, it does not have to be in the file system. You can read more about it here: http://msdn.microsoft.com/en-us/library/ms476046.aspx

    Since I’ve never worked with “regular ASP.net” after version 1.1, I have no idea, how master pages SHOULD work.
    But, what I’ve been doing once, is copying the contents of default.master (lives in /12/template/global) to a new file which does not inherit from anything, then I included it in site definition feature and referenced to it in onet.xml file.
    The technique is described here: http://statto1974.wordpress.com/2007/04/30/using-a-custom-master-page-in-a-site-definition/

    EDIT: However, there are several references to this being possible, for instance, this one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Sharepoint 2007 internet site using Microsoft commerce server 2009. I need
I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I have
I have a ASP.NET GridView that i created on a page through SharePoint Designer
I am using microsoft office sharepoint server 2007. i have a sharepoint list in
I'm moving our Sharepoint site 3.0 2007 from a Windows server 2003 machine to
I have a custom list created in Sharepoint 2007 and displayed by a content
Long story short: I have a BDC application definition in my sharepoint 2007 server,
We have a SharePoint 2007 site. It is supported by two back-end databases -
I have created a document library in sharepoint 2007 and i have enabled incoming
I have been tasked with coming up with a compatibility guide for SharePoint 2007

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.