简体   繁体   English

错误:在包含内容控件的内容页面中只允许直接使用内容控件。 在页面布局 SharePoint 2016 中

[英]Error: Only Content controls are allowed directly in a content page that contains Content controls. in Page Layout SharePoint 2016

I have SharePoint error in custom page layout its Only Content controls are allowed directly in a content page that contains Content controls我在自定义页面布局中出现 SharePoint 错误,仅允许在包含内容控件的内容页面中直接使用内容控件

And I checked this issue in SP logs here我在此处的 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>并且它会正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 只允许在包含内容控件的内容页面中直接使用内容控件 - Only content controls are allowed directly in a content page that contains content controls 直接在包含内容控件的内容页面中仅允许内容控件 - Only Content controls are allowed directly in a content page that contains Content controls 只允许内容控件直接在包含ASP.NET中的内容控件的内容页面中 - Only Content controls are allowed directly in a content page that contains Content controls in ASP.NET ASP.NET 错误:仅在引用母版页的内容页中允许使用内容控件 - ASP.NET Error: Content controls are allowed only in content page that references a master page 访问内容页面控件 - accessing content page controls 仅允许内容控件(C#webcontrols) - Only Content Controls are Allowed (C# webcontrols) 内容页面中控件的母版页位置 - Master Page location of controls in content page asp错误:内容控件必须是内容页或引用母版页的嵌套母版页中的顶级控件 - asp error: Content controls have to be top-level controls in a content page or a nested master page that references a master page 通过内容页面上的DropDownList更改动态控件 - Changing Dynamic Controls via DropDownList on Content Page jQuery在内容页面的服务器控件上不起作用 - jquery not working on server controls in content page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM