【问题标题】:Error: Only Content controls are allowed directly in a content page that contains Content controls. in Page Layout SharePoint 2016错误:仅允许直接在包含内容控件的内容页面中使用内容控件。在页面布局 SharePoint 2016
【发布时间】:2021-03-19 07:02:02
【问题描述】:

我在自定义页面布局中有 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.net sharepoint sharepoint-2013


    【解决方案1】:

    我找到了解决方案,只需将页面布局中的占位符内容标签从 <asp:content> 更改为 <asp:Content> 就可以了

    【讨论】:

      猜你喜欢
      • 2012-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多