简体   繁体   中英

Error: Only Content controls are allowed directly in a content page that contains Content controls. in Page Layout SharePoint 2016

I have SharePoint error in custom page layout its Only Content controls are allowed directly in a content page that contains Content controls

And I checked this issue in SP logs here

Error=Only Content controls are allowed directly in a content page that contains Content controls.  
 at System.Web.UI.FileLevelPageControlBuilder.AppendLiteralString(String text)    
 at System.Web.UI.TemplateParser.ProcessLiteral()

Error Log Image

在此处输入图片说明

我找到了解决方案,它只是在您的页面布局中将占位符内容标签从<asp:content>更改为<asp:Content>并且它会正常工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM