【发布时间】:2014-07-09 15:36:48
【问题描述】:
我有一个关于 Scriptmanager 的问题,我的问题是: 为此,我需要在母版页中使用 ScriptManager:
<asp:ScriptManager ID="scriptManger1" runat="server">
<Scripts>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="bootstrap" />
<asp:ScriptReference Name="respond" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
</Scripts>
</asp:ScriptManager>
并且我在我的内容页面中需要一个 ScriptManager,因为如果我在运行我的应用程序时从这里删除,会给我一个错误,因为我需要一个 ScriptManager,如果我在运行我的应用程序时放置一个 ScripManager,会给我一个错误,因为我有2 ScriptManager,因为我在母版页中有 1 个,在内容页中有 1 个。
我的问题是如何解决这个问题?
【问题讨论】:
-
您遇到的具体错误是什么?
-
这里的标签在哪里,请标记一下¿?