gpt4 book ai didi

c# - 如何将 AjaxControlToolkit 添加到 Visual Studio 2013 web 表单模板?

转载 作者:行者123 更新时间:2023-11-30 12:46:29 26 4
gpt4 key购买 nike

它已经太复杂了,我怀疑我是否可以独自处理它。目前,从一开始就有很多项目包含在项目中,我不确定它们是什么以及它们是什么。

我已经将 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 没有提供任何脚本,现在我不知道如何解决它?

最佳答案

关于c# - 如何将 AjaxControlToolkit 添加到 Visual Studio 2013 web 表单模板?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20070987/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com