加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 如何将AjaxControlToolkit添加到Visual Studio 2013 Web表

发布时间:2020-12-15 21:58:50 所属栏目:百科 来源:网络整理
导读:它已经复杂了,我怀疑我是否可以单独处理它.目前,从一开始就包含很多项目,我不确定它们是什么以及它们是什么. 我已经将AjaxControlToolkit添加到项目中并用于设置脚本管理器: ajaxToolkit:ToolkitScriptManager runat="server" EnablePageMethods="true" Ena
它已经复杂了,我怀疑我是否可以单独处理它.目前,从一开始就包含很多项目,我不确定它们是什么以及它们是什么.

我已经将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,现在我无法理解如何解决它?

解决方法

检查此链接可能会有所帮助:

AjaxControlToolkit version 7.0123 with .NET 4.5

Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读