Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Site Pages creating new one how do I add the masterpage

$
0
0

this looked straight forward I looked at the SitePage labeled home.aspx and in the page directive it just had a line like

<%@ Page Language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WikiEditPage" MasterPageFile="~masterurl/default.master"      MainContentID="PlaceHolderMain" %> 

whereas my new aspx page has 

<%@ Page Language="C#" %> 

so i assumed I just needed to add in MasterPageFile="~masterurl/default.master" 

when i do i get an error on the page and a correlation id that maps to these errors below. So how do I add a masterPage to a new SitePage?

 

Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>