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

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

Master Pages for SharePoint 2010

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


I created custom web part for SharePoint 2007,it has an application page which references application.master master page.

Now i want to deploy the same web part to SharePoint 2010.

When deploy is done and i navigate to that application page, i see page is a bit broken. It still works, but UI is messy, and i think it still tries to load some old master page for some reason and doesn't use SharePoint 2010 master pages.

Any thoughts about this issue?



Lightning Tools Check out our SharePoint tools and web parts
SharePoint forum solutions SharePoint forum web parts
Lightning Tools Data Masher Simple Sql Import/Export

View Complete Post

More Related Resource Links

Delete Page Layouts and Master Pages in SharePoint 2010

Hi I want to delete unwanted Page layouts and master pages in share point 2010. I tried to delete the steps mentioned below as like MOSS 1.Create a New folder 2.Move the page layouts to that New folder 3.Delete the New folder But this approach also failed.. please suggest me to delete... Thanks in Advance ArunWith Love

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?

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?


Video: SharePoint 2010: Sites as Collections of Pages

Find out how pages in SharePoint 2010 play a key role in the structure of a site. The developer (and the user) now has complete control of the user interface including the placement of Web parts anywhere on the page. (Length: 15:53)

How to develop Common Content or Application pages in Sharepoint 2010, with respect to the customiz

  I have a top level site and subsites (which might be around 10). Where as the top level site represents a common landing page and each sub site represents a client site to which user will be directed upon login. This is a PUBLISHING web site. I need to design to start with common pages across all clients and if there is a need let the client to customize the common page accroding to their need. This is a PUBLISHING site so all these common pages should have Web parts zones with authoring capabilities. What is the best way of achieving this?    

Deploying master pages in sharepoint 2007

Present situation:   Client has dev environment and they have customized the default page which comes ootb and is in Page Library. Also Created Master page using Sharepoint designer, and made that master page as the default master page for the site. The proposed solution: For promoting to different environments we will have to move packages WSP's across environments.   The present situation: All the environments were restored by using site collection backup and restore option (stsadm -o restore ...)   The Problem: Can we overwrite the master pages, page templates which are presently in master page gallery and page library by using feature   Or is there a better way of doing this.   Can somebody specify a better option for promoting.  

Show wiki page library columns on wiki pages- SharePoint 2010

I created a wiki page library in SharePoint 2010 and added a few columns to the library. However, these columns do not show on the actual wiki pages as they did in SharePoint 2007. I looked through the library settings but didn't find anything to turn on this feature. Does anyone know how to do this or if this feature was even included in SharePoint 2010? Thanks.

replacing menu in a master page - Sharepoint Foundation 2010

I'm in the process of replacing a menu using Jquery and a sharepoint list.The menu data would be retrieved from webservice. But the problem i have is where to place my js menu script the master page. I tried disabling the asp: menu and the content place holders by setting visible to false and the place my div with the new menu just before the first content place holder. But i discover that any time i try and hover the menu.The hover kind of get blocked and it doesn't show. What do i need to take off and where should my js menu be place..

How to change the order of Webparts in Sharepoint 2010 wiki pages

In WSS you change the order of webparts just by moving them above or below another webpart. This does not work any longer in SP 2010. I want to move a list webpart above another list webpart. How can I do it [SP2010 Foundation].

Sharepoint 2010: Get error: You do not have permissions to have lists and pages within My Site.

I am using the administrator login for the sharepoint 2010 farm.  I'm able to access My Site.  However, when I click on My content, I'm getting You do not have permissions to have lists and pages within My Site.   Any ideas?   Thanks.

Session State throws error in ASP.NET Site Pages for SharePoint 2010 portal using Visual Studio 2010


I'm developing Visual Studio 2010 solution for site pages. I’ve created Site Pages in SharePoint 2010 and I’m trying to access Session variables in code behind in ASP.NET but it throws the following error.

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

I set the page directive as enableSessionState=&quo

How to assign different master pages for different sharepoint pages?


Hi All,

For my sharepoint site I have created my own custom Masterpage and css. Later now I need one page where it will not have any css applied or any master page can i know how can I do that?

Briefly I need to assign different masterpages  to different sharepoint pages. Please help me in this regard.


Thanking you,





<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<EMBED src="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"


Stuck installing Sharepoint 2010 - Config Wizard saying Cannot connect to database master


Hi all

I have setup 2 servers in hyper-v.
SERVER-SHP = Sharepoint 2010
both running on windows server 2008 R2.
Both servers are joined to the same domain, have fixed ip addresses and can ping each other.

When I get to the part in Sharepoint 2010 setup where I'm runnng "Sharepoint Products Configuration Wizard" where I specify the database server and name and username and password I get the following error which I can't get past "Cannot connect to database master at SQL server at SERVER-SQL. The database might not exist, or the current user does not have permission to connect to it."

I have read the following link and followed it but the problem remains

I don't see where it is falling over as the username and password is the domain administrator one (have also tried the spAdmin) mentioned to setup in the above link. And it says at the notes at the top of the page that if the database (SharePoint_Co

Search Master Page in SharePoint 2010

Hi guys,

When I create a site collection using the Enterprise Search Center template and then go in the Site Settings to change the Master Page I choose to inherit the master page from parent (subsite) or to use v4.master and confirm the default page layout is completely messed up, the search box disappears and it becomes unusable. I included screenshots of this issue below. please help me i am new to sharepoint Has anyone seen this before?

Before the Master Page update:

After the Master Page update:

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 Wiki pages non editable after in place upgrade to SharePoint 2010



We recently upgraded SharePoint 2007 SP2 farm to SharePoint 2010 farm uisng in-place upgrade. The upgrade was successful execept the Wiki pages library pages showing unusal behavior. 

All the content in Wiki pages library under the SP 2007 site were upgraded to Wiki pages library under the same site after upgrade to SP 2010. But the WIKI tool bar is not showing the Edit button on Wiki pages and hence the Wiki content is non editable. 

We did not receive any error or informtaional message in the pre-upgradecheck on prior to upgrade.

I would highly appreciate if some could help get the issue resolved.



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