![](/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.