Dear All,
Can we the Different Master Page for Different Pages In the same Site Collection In sharepoint 2013.
Please help me.
Thanks,
Rani
Technology Tips and News
Dear All,
Can we the Different Master Page for Different Pages In the same Site Collection In sharepoint 2013.
Please help me.
Thanks,
Rani
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.
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
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.