AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced

假如想象 提交于 2019-12-12 10:58:54

问题


Recently I started working on VS2010 and I am referencing AjaxControlToolkit 4.1.51116.0. I am getting below runtime error -

Microsoft JScript runtime 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.

I have seen many question floating for same error but the solution suggested is to use 'ToolkitScriptManager' instead of 'ScriptManager' is not working for me. Any help in this context would be greatly appreciated.


回答1:


Make sure you replace the <asp:ScriptManager /> tag with the namespace of your AjaxControlToolkit assembly (e.g. atk): <atk:ToolkitScriptManager />. That worked for me.



来源:https://stackoverflow.com/questions/9982236/ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts-ensure-the-correct-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!