.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Masterpage not inheriting

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :SharePoint


I am using Sharepoint 2010 Enterprise, i have created a site collection and have used a Publishing Site as the template for the portal.  I have customised the master page of the site and everything looks good.  When i add a subsite, although the masterpage settings are set to inherit the parents masterpage, this is not happening.  Instead the subsite is using its own masterpage and i need to make my changes all over again to this site. 

How can i make it so that the site will inherit the master page of its parent? am i doing something wrong?

On the subsite, under http://spoint2010/Departments/_Layouts/ChangeSiteMasterPage.aspx all 3 options for Site Master Page, System Master Page and Alternate CSS URL are set to Inherit site master page from parent of this site.

View Complete Post

More Related Resource Links

Can a page inheriting from masterpage have its own CSS?


Hi all I was wondering if it was possible to add CSS styles to a content page? I am trying to add styles to one of my content page by using a <link rel> tag but I get a compilation error. Is there another way of doing this?

I was thinking of loading all my styles on the MasterPage and then just using them as I need to but surely thats an inefficient way of doing things? I want to be able to just include CSS files that are relevant to the single content page...

Thanks in advance, Onam.

Custom template not inheriting custom masterpage/branding


We are in the process of migrating from MOSS 2007 to Sharepoint 2010 nad need to recreate site templates used in multiple business processes. We have done the Visual upgrade and designed a new Master Page/CSS that is compatible with 2010. However - To create a template, Publishing must be off. But when I create a site from these templates, they do not inherit the custom master page because Publishing is not enabled.

So to this point  it appears I cannot create a template that will inherit my branding. Is that the case? 

Global Nav on Custom Masterpage not Inheriting Settings



I currently have a Publishing site with workflow and multiple subsites that are also publishing sites. The global nav on the subsites needs NOT to inherit the links from the parent site. The system pages are reflecting these settings correctly, but the pages with the custom master attached are not... They all show the same navigation as the parent site, regardless of any changes to the navigation settings.

I have carefully checked the global nav control for the custom master, and it is identical to the global nav in the v-4 master. I've also tried removing custom styles as a last resort and have not found a reason in the custom master, for this problem to be occurring.

Has anyone experienced this issue before and found a solution?

Any help would be much appreciated!

Rebecca Zimmerman

Parser Error Message: Could not load type MasterPage File



Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'wamsilverlight.Web.Wam'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Wam.master.cs" Inherits="wamsilverlight.Web.Wam" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Source File: /Wam.Master    Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927


All of the following have been tried over and over again:

1.) Delete all existing .dlls

2.) Delete MasterPage File and recreate it.

3.) Delete MasterPage perform a c

Setting webpage/masterpage background...image?


I want to have the background of my masterpage (the master page for all of my .aspx pages) have a sort of gradient.  I imagine the only way I can do that is with an image.  Or maybe even some other design, but I want to move away from the "solid color" background.

Is the easiest way to do this just to make an image and set that as the background?  What image size should I make it, because some users could possibly have the normal aspect ratio, or maybe a widescreen?  What should I make it like so that it looks good on all computers?

Thanks in advance. :) 

how can i use stylesheet file on pages that derives from masterpage


Hello. i use masterpage on my project. i want to add stylesheet file on pages that derives from masterpage. I add default.aspx page like this:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<link href="styles/salon.css" rel="s." type="text/css" />

But i can't see design page like this. It gives error like this:
Error 1 Cannot switch views: Validation (Internet Explorer 6): Element 'link' cannot be nested within element 'div'. 

i use IE7. Also how can i use jquery pages that derives from masterpage. Thanks...


Sharepoint 2007 - Wiki site - New Pages Not Inheriting Custom Master Page


I am working on a SP site (MOSS not WSS) which is heavily customised away from the OOTB layout. I need to create a Wiki site, which was going well - I've created a master page which displays the miniconsole (this was not visible with our customised layout), and made it the default master page for the site. This has been applied to the two standard pages that come with the Wiki site, however when a new page is created, it seems to inherit the default.master, rather than my custom master page - thus not showing the miniconsole.

When I have created a new page, I am able to use SharePoint Designer to attach my custom master page to it, which works perfectly, however this will not be a viable option going forward as end-users create their new wiki pages.

How can I get the new pages to inherit my master page when they are created?


HTML5 & Masterpage CSS

 I'm migrating my site to HTML5 and I got the home page, including the Masterpage, to work in the browsers. The problem is that when I go another page the CSS doesn't work on the page. All I get is a linearized page; any idea why this occuring? thx  

Inheriting from StateMachineWorkflowActivity?

I'm implementing a number of state machine workflows which all have a number of properties and a top level EventDrivenActivity in common. My first approach was to implement the common features in a class inheriting from StateMachineWorkflowActivity and then inherit my workflows from this class. However, this doesn't seem to be supported; specifically: 1. During build, validation fails on my base class because I haven't specified an initial state or final state. I tried adding two empty states to get around this problem, which worked, but then 2. The designer in VS2008 duplicates the activities in my base class when designing my derived class and then complains that it has duplicate component names. For example, I have a state in my base class called RESERVED_INITIAL which is my dummy initial state; when I work with my derived class in the designer, the designer adds a state called RESERVED_INITIAL to the derived class, causing an error because there are now two components with the same name What I want to ask, then, is: 1. Is using inheritance in this sort of way supported, ie, can we create classes that sit between StateMachineWorkflowActivity and actual concrete workflows to factor out common features of those workflows? And if not, 2. Is there a better way to capture the commonality between a number of workflows in a solution? Thanks in advance

SPD message - The URL ../../_catalogs/masterpage is invalid

When I open a page on one of my SP (MOSS 2007) sites using SharePoint Designer I get a pop-up with this error. I click OK and the page seems to load fine... as far as I can tell. These pages are in a publishing site, but aren't under the control of the publishing feature - they are forms for a list.   I've searched around for some info on this error and have found a lot of solutions for masterpage, but nothing for this one specificaly related to SPD. Any thoughts?   Thanks! Brent

New Document Library in a subsite is inheriting permissions from wrong site

I have a site collection (using the out-of-the-box Business Intelligence site template) called "BI Home". A couple weeks ago I created a bunch of subsites (Finance, Regulatory, Marketing, etc.) all using the BI site template, and then created a Document Library called "Reports" in each one of those subsites. Those are all working as expected. Yesterday I needed to create a new subsite (again, a BI site just off the root site collection) called "Operations". I created the subsite, and then created the "Reports" document library underneath it.  When I went to modify the permissions of the new document library (located here: /Operations/Reports), it said it was inheriting permissions from it's parent: "BI Home".  Why would this be?  Shouldn't the parent be "Operations" ?? All my other sites' "Reports" folders are inheriting permission from their respective parent, but any new sites I create seem to have this issue. Thanks in advance for any insight someone may provide! [SharePoint 2010 RTM on Win2k8R2 using SQL 2008R2 RTM on Win2k8R2]

Sharepoint 2010 masterpage editing questions

Hi, I have a Sharepoint design which I am trying to customise in SP2010. I can't make a new masterpage but I can copy an existing one. Why? I copied default.master. Do I need to keep any of the existing elements like Site Actions? Because this needs to exist if I choose to edit the site page. But of course for a read only user this won't display (is a shame this gets in the way of the design though). Please advise and provide any other useful tips. Thanks

Masterpage didnt get applied to a particular _Layouts files(application page) for EditUserPref.asp

Master page did nt  get applied to a application page  (_layout file),   but other layout pages have the master page applied. EditUserPref.aspx  ->  Im accessing from search preference - http://i34.tinypic.com/34xi9t5.jpg  

Sharepoint Designer: ErrorMessage in Designview after adding new PlaceHolder to masterpage

Hi! I added a new PlaceHolder to the masterpage of my SharePoint-Site. Now when I switch to DesignView of a page which uses this masterpage in SPD most of the other PlaceHolders are not displayed and show a error message like "Error on creating control. Response is not available in this context". How do I prevent this problem? And what is the cause? Thank you very much for answers! Gerrit

Programmatically(WSS Web Services) Inheriting Parent Site Permissions for Workspaces

I'm able to create meeting work spaces in Sharepoint 2007 using the WSS web services. This issue that I'm running into is that the default is not inheriting permissions from the parent site. I'm looking for a way to configure this option for the work space programmatically through the use of the WSS web services. I've tried changing this in the template that I'm using to create the workspace, but this does not seem to effect the end results.Regards,Timothy H

Masterpage + UpdatePanel + Formview + EditItemTemplate = Null controls

I have a content page with a DropDownList in an UpdatePanel, a GridView in another UpdatePanel and a FormView in a 3rd UpdatePanel.  The databind's for the 3 controls happen in the code behind.  The FormView is populated when a row is clicked in the grid.  The Mode of the FormView is contolled by a series of buttons in that UpdatePanel, displayed as appropriate depending on the data in the grid row.  When the FormView is in Insert and the bound textboxes of that template are edited and (partial) posted back, I can retrieve the controls and their values with casts such as: if (Emp_Form.CurrentMode == FormViewMode.Insert) { CheckBox active = (CheckBox)Emp_Form.FindControl("cbActive"); ... But when the FormView is in Edit there aren't and controls during the (partial) post back.  A reference to them such as: if (Emp_Form.CurrentMode == FormViewMode.Edit) { TextBox usrNmTB = (TextBox)Emp_Form.FindControl("UserNmTbx"); sUsr = usrNmTB.Text.ToString(); ... results in a Null object reference exception.  When a button's onclick runat server event fires how should I capture the FormView's controls collection?  Why does it work for the Insert mode and not the Edit mode? Thanks in adva

Access Public Function in MasterPage

Hi,I need help in accessing the function in my masterpage.I have a.master and b.aspx with the content page.Now in the page load of my content page, I want to execute the an sql query which is in a function in my master page.How can I access the function in my master page??code in my master page:public function info () as string'SQL Queryend function
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend