ASP.NET错误:仅在引用母版页的内容页中允许内容控件 [英] ASP.NET Error: Content controls are allowed only in content page that references a master page
本文介绍了ASP.NET错误:仅在引用母版页的内容页中允许内容控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于以下页面,我收到了标题错误:
I received the error in the title as a result of the following page:
<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
<atlas:ScriptManager ID="ScriptManager" runat="server">
</atlas:ScriptManager>
在此页面中,我使用AJAX控件.
In this page I use AJAX controls.
推荐答案
您放置内容控件的页面不是基于母版页的页面.如果您有
The page that you've put the content control is not a master page based page. Check the top of the page, if you've got html like
<html>
<body>
标记,则可能是您创建了一个新页面,而不是基于母版页面的新页面.
tags then the likelihood is that you've created a new page rather than a new page based off a masterpage.
这篇关于ASP.NET错误:仅在引用母版页的内容页中允许内容控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文