Only Content controls are allowed directly in a content page that contains Content controls SharePoint 2013 Page Layout

This SharePoint 2013 tutorial explains, how to resolve the issue Only Content controls are allowed directly in a content page that contains Content controls.

Recently I got an error while applying a page layout in a page in a SharePoint 2013 site. The error coming was

Sorry, something went wrong
An error occurred during the processing of /SiteURL/_catalogs/Pages/default.aspx. Only Content controls are allowed directly in a content page that contains Content controls.

The error came for a particular page layout. If I change to that page layout then the error comes.

Only Content controls are allowed directly in a content page that contains Content controls

Actually, there was an issue with the page layout.

I checked out the page layout in the SharePoint site and find out that:

<asp:content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">

Here the problem was with “c” in the <asp:content. After I change to capital “C” it started working.

<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">

You may like following SharePoint page layouts tutorials:

Hope this will be helpful to resolve the issue Only Content controls are allowed directly in a content page that contains Content controls.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com

>