Error: Only Content controls are allowed directly in a content page that contains Content controls. in Page Layout 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()
Error Log Image
我找到了解决方案,只需将页面布局中的占位符内容标签从 <asp:content>
更改为 <asp:Content>
即可正常工作
我在自定义页面布局中遇到 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()
Error Log Image
我找到了解决方案,只需将页面布局中的占位符内容标签从 <asp:content>
更改为 <asp:Content>
即可正常工作