Different Master Page for Different Pages In the same Site Collection In sharepoint 2013

Dear All,

Can we the Different Master Page for Different Pages In the same Site Collection In sharepoint 2013.

Please help me.

Thanks,

Rani

April 15th, 2013 7:33am

If the requirement is to create different sitepages and associate them with different masterpages then yes that can be done.

Within your SharePoint solution specify the masterpages within the following property at the top of each page

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sample.aspx.cs" Inherits="" DynamicMasterPageFile="~masterurl/MasterPage1.master" %>
This can be added using the SharePoint designer or VisualStudio, depending on how you are creating these pages.
Free Windows Admin Tool Kit Click here and download it now
April 15th, 2013 8:19am

Hi Verma,

Do you know what is the code snippet to use in SharePoint 2013 Online to achieve the same, please?

I tried <!--SPM:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sample.aspx.cs" Inherits="" DynamicMasterPageFile="~masterurl/MasterPage1.master" %> -->

But this is not working, any help appreci

March 24th, 2014 3:21pm

You can edit your page like this

<%@ Page Language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WikiEditPage" MasterPageFile="../_catalogs/masterpage/YourMasterPage.master" MainContentID="PlaceHolderMain" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>

It work, I have try it.

Free Windows Admin Tool Kit Click here and download it now
August 5th, 2015 10:02pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics