.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

change sharepoint site defult master page

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#

Hi all,

i was trying to change default master to some other master page

here is wht i did.

opened site in moss designer

navigated to masterpage folder

and created a copy of default renamed it and made some changes

and then right click tht copy and set as default master

now when

i open site it says resource cannot be found whts wrong??

View Complete Post

More Related Resource Links

Using HttpModule to change master page dynamically on SharePoint 2010 site


I am trying to change master page dynamically on SharePoint 2010 site. I reviewed some documents (SharePoint: Dynamically Change Master Page: http://ranaictiu-technicalblog.blogspot.com/2009/10/sharepoint-dynamically-change-master.html) and I implemented IHttpModule, added it to GAC, modified web.config(safecontrol, httpmodule, module)
It works good! But I found some problems
1.Never catch the PreInit event for publishing pages
2."/_Layouts/RedirectPage.aspx" page occurred error
3.ContextMenu did not work

using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
using Microsoft.SharePoint;
using System.Configuration;
using Microsoft.SharePoint.ApplicationRuntime;

namespace MasterUtilModule
    public class MasterModule : IHttpModule
        public void Dispose() { }
        public void Init(HttpApplication context){

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?


.master page image is not shown in sharepoint site????


have build my .master page and uploaded it into sharpoint site all other constrols are shown on the master page on sharepoint site

but image is not visible on sharepoint site

can any body give me the solution about that!!!!!!

in sharepoint 2010

master page image not shown in sharepoint site


i have build my .master page and uploaded it into sharpoint site all other constrols are shown on the master page on sharepoint site

but image is not visible on sharepoint site

can any body give me the solution about that!!!!!!

in sharepoint 2010


Changing the master page and Css of SharePoint Site programatically

Hi All,

I am trying to change the Site Collection's Master page and alternative css  programatically. Below is the code I am using:


SPWeb spWeb = SPContext.Current.Web;

spWeb.AllowUnsafeUpdates =


spWeb.CustomMasterUrl = spWeb.CustomMasterUrl.Replace(

"default", "NewMaster");

spWeb.MasterUrl = spWeb.MasterUrl.Replace(


How to apply a custom master page to all the existing site collections, sub sites in sharepoint 2010



my custom branding master page is applying to the newly created site collection or sub sites using feature stapling.

but my intension is already created site collections and sub sites, here i am not able to apply custom master page to site collections and sub sites.

pls help me. i need to complete this task today EOD.

How to change master page in sharepoint 2010?

Hi All:

We've just got the sharepoint2010 installed to test it, like it so far, but many options that we were ablet o find quickly are now at different places, so I might be asking something very simple here that I just didn't see, could anyone point out for me where do I go to change master page in sharepoint 2010? it used to be under site settings -> looks and feels, but there is not this option under looks and feels in 2010, all i see about master pages is a gallery of what master pages there are. Thanks in advance.

Is there a site page default.master in SharePoint Server 2010??



I inserted a few lines of code on the wkpstd.aspx template to "show" the document library properties on each wiki page within each wiki page library. This is working fine, except that the property Document ID
is showing up on site pages as well.  I checked Moss 2007 and I foumd that there is a bpcf.aspx default page that is used to create a basic page. Is there a separate template or master page for the site pages within 2010 that i can modify?

Any help or suggestion is greatly appreciated. Thanks.


Set as default master page in Sharepoint Designer 2010 does not change pages at all


I make a copy of V4.masterpage ,rename it as myv4.masterpage, and modify it .

then right-click myv4.masterpage and choose 'set as default masterpage'.

but when i open my site, the pages don't change, and create a new page,it still the old look.


Shouldn't it do that?

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

Apply custom.master to "Site Settings" page?


I'm using a custom.master page, which is applied to almost all pages available to READ users.

However, I'd like to apply it to the Search, Site Settings, and View All Site Content pages.

I'm not sure where this would be applied.

Guidance much appreciated. Thanks!

Adding a custom ASP page to a sharepoint 3.0 site


I have a custom ASP page that I need to add to my sharepoint 3.0 web site.  I created a virtual directory under my website and placed the ASP file.  When I link to the ASP file, I get a 404 page not found.  To make sure I had the correct URL path, I created a test html file and placed in the same virtual directory and linked to it just fine.  I think it has something to do with managed paths and sharepoint trying to control this new ASP content.  I cannot figure out how to exclude this content from managed paths.

Any suggestions on how to resolve this issue so I can run this custom ASP file under sharepoint 3.0?


Programmatically Hide Master Pages from Site Master Page Settings page?



I know there is a field you can check when you edit the properties of a Master Page in the Master Page Gallery to set a Master Page to hidden but ... can anyone think of a way to programmatically hide specific Master Pages from the Site Master Page Settings page?

Maybe this should be two questions:

  1. How do I programmatically access a Master Page in a Master Page Gallery?
  2. Is there a property that can be set that will hide the page from the Site Master Page Settings page?

Change label text on master page from the content page.

Hello. Can I access the objects (for example change the label text) on the master page, from its contents page code? If yes, how can I approach that? Thank you Artashes

The site master page setting currently applied to this site is invalid. Please select a new master p

I have defined a new master page and set it as default for the main site.  Any time I create a new subsite it does not apply the new master page and defaults back to the default.master.  The Site Master Page Settings shows this error. The site master page setting currently applied to this site is invalid. Please select a new master page and apply it The system master page setting currently applied to this site is invalid. Please select a new master page and apply it. Now if I select "Inherit site master page from parent of this site" and "Inherit system master page" and click ok the site will use the new master page and everything is fine.  There is only one modification to the master page that was done so I know the master page isn't invalid.  Does anyone know the answer other than recreating the new master page.

Unable to create columns in document library after applying custom master page to site

Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?
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