Answered by:
Master Page

Question
-
hi,
What is the master page for Sharepoint sites Home.aspx,
AND
What is the master page for Sharepoint sites default.aspx,
Monday, December 19, 2011 11:00 AM
Answers
-
Hi Maswood Khan,
Both pages are by default use v4.master in SharePoint 2010
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact ravimca@live.com.- Proposed as answer by SoapyJ Monday, December 19, 2011 2:03 PM
- Marked as answer by Xue-Mei Chang-MSFT Wednesday, December 21, 2011 6:35 AM
Monday, December 19, 2011 11:26 AM -
By default, Home.aspx and default.aspx has the same master page (Default Master Page).
We can set two types of master pages in SharePoint Site.
1) Default Master Page and 2) Custom Master Page.
BY OOB master pages are located under http://sitename/_catlogs/masterpage/
SharePoint 2010 has the v4.master as the Default Master. In SharePoint 2007, the default master page was default.master.
We can find the master page for the site using SharePoint Designer.
Open the file and search for following lines
<%@ Page language="C#" MasterPageFile="~masterurl/default.master" // Default Master Page
<%@ Page language="C#" MasterPageFile="~masterurl/custom.master" //Custom Master Page
SharePoint Designer helps us to set the master page for the site by following the steps.
- Go to master page folder
- Right click the file and use "Set as Default Master Page" to set the default master page for the site.
- Right click the file and use "Set as Custom Master Page" to set the custom master page for the site.
By Programatically, we can get or set masterpage for the site using following snippet,
- SPWeb.MasterUrl
- SPWeb.CustomMasterUrl
Regards,
Shantha Kumar .T | MCPD - SharePoint Developer 2010 | MCITP - SharePoint Administrator 2010
(B) Shantha Kumar's Blog | (T)Follow me- Proposed as answer by Vivek Jagga Monday, December 19, 2011 12:13 PM
- Marked as answer by Xue-Mei Chang-MSFT Wednesday, December 21, 2011 6:35 AM
Monday, December 19, 2011 11:35 AM
All replies
-
Hi Maswood Khan,
Both pages are by default use v4.master in SharePoint 2010
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact ravimca@live.com.- Proposed as answer by SoapyJ Monday, December 19, 2011 2:03 PM
- Marked as answer by Xue-Mei Chang-MSFT Wednesday, December 21, 2011 6:35 AM
Monday, December 19, 2011 11:26 AM -
By default, Home.aspx and default.aspx has the same master page (Default Master Page).
We can set two types of master pages in SharePoint Site.
1) Default Master Page and 2) Custom Master Page.
BY OOB master pages are located under http://sitename/_catlogs/masterpage/
SharePoint 2010 has the v4.master as the Default Master. In SharePoint 2007, the default master page was default.master.
We can find the master page for the site using SharePoint Designer.
Open the file and search for following lines
<%@ Page language="C#" MasterPageFile="~masterurl/default.master" // Default Master Page
<%@ Page language="C#" MasterPageFile="~masterurl/custom.master" //Custom Master Page
SharePoint Designer helps us to set the master page for the site by following the steps.
- Go to master page folder
- Right click the file and use "Set as Default Master Page" to set the default master page for the site.
- Right click the file and use "Set as Custom Master Page" to set the custom master page for the site.
By Programatically, we can get or set masterpage for the site using following snippet,
- SPWeb.MasterUrl
- SPWeb.CustomMasterUrl
Regards,
Shantha Kumar .T | MCPD - SharePoint Developer 2010 | MCITP - SharePoint Administrator 2010
(B) Shantha Kumar's Blog | (T)Follow me- Proposed as answer by Vivek Jagga Monday, December 19, 2011 12:13 PM
- Marked as answer by Xue-Mei Chang-MSFT Wednesday, December 21, 2011 6:35 AM
Monday, December 19, 2011 11:35 AM -
Hi All,
Master pages are a feature of ASP.NET 2.0; they work the same way in Windows SharePoint Services 3.0 and Office SharePoint Server 2007 as they do in ASP.NET 2.0. Using master pages, you can create a single page template and then use that template as the basis for multiple pages, instead of having to build each new page from scratch.Microsoft has made available a package of four sample master page sets that were built using new CSS and Master Page editing tools within Office SharePoint Designer 2007.
These sample master pages:
· Enable you to apply a pre-designed style and layout to SharePoint sites
· Work with the forty new Application Templates for Windows SharePoint Services 3.0
· Provide a starting point for deeper SharePoint site look and feel customizations
· Are available for download at no additional cost.
Thanks,
- Edited by Droisys Monday, December 19, 2011 1:25 PM
Monday, December 19, 2011 1:25 PM