繁体   English   中英

错误:在包含内容控件的内容页面中只允许直接使用内容控件。 在页面布局 SharePoint 2016 中

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

我在自定义页面布局中出现 SharePoint 错误,仅允许在包含内容控件的内容页面中直接使用内容控件

我在此处的 SP 日志中检查了此问题

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()

错误日志图像

在此处输入图片说明

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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