![](/img/trans.png)
[英]Only content controls are allowed directly in a content page that contains content controls
[英]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.