它已经复杂了,我怀疑我是否可以单独处理它.目前,从一开始就包含很多项目,我不确定它们是什么以及它们是什么.
我已经将AjaxControlToolkit添加到项目中并用于设置脚本管理器:
<ajaxToolkit:ToolkitScriptManager runat="server" EnablePageMethods="true" EnablePartialRendering="true" LoadScriptsBeforeUI="true" AjaxFrameworkMode="Enabled"> <Scripts> <asp:ScriptReference Name="jquery" /> <asp:ScriptReference Name="bootstrap" /> <asp:ScriptReference Name="MsAjaxBundle" /> <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> </ajaxToolkit:ToolkitScriptManager>
它看起来像ajaxToolkit已经有效,但我看到Chrome控制台中的错误.
Uncaught Error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts.
Ensure the correct version of the scripts are referenced. If you are
using an ASP.NET ScriptManager,switch to the ToolkitScriptManager in
AjaxControlToolkit.dll. ScriptResource.axd:19
我在Scripts文件夹中找到了很多不同的各种脚本,没有提供AjaxControlToolkit,现在我无法理解如何解决它?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。