簡體   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