I have the following code line that adds the default.master to a custom aspx page;
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConvertStatus.aspx.cs" Inherits="Class.Layouts.SharePoint.Status" DynamicMasterPageFile="~masterurl/default.master" %>
I don't want any chrome on the page so I want to use the minimal.master. I have tried the following.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConvertStatus.aspx.cs" Inherits="Class.Layouts.SharePoint.Status" DynamicMasterPageFile="~masterurl/minimal.master" %>
When I do this I then get the error:
Content controls are allowed only in content page that references a master page.
How do I reference the minimal.master?