Introduction:
Here I will explain how to solve AjaxControlToolkit error like Ensure the correct version of the scripts are referenced. If you’re using an ASP.NET ScriptManger, switch to the ToolkitScriptManager in AjaxCOntrolToolkit.dll.
Happy Coding……
Here I will explain how to solve AjaxControlToolkit error like Ensure the correct version of the scripts are referenced. If you’re using an ASP.NET ScriptManger, switch to the ToolkitScriptManager in AjaxCOntrolToolkit.dll.
Description:
I have installed AjaxControlToolkit and added all ajax controls to Toolbox in visual studio after completion of this process I started using AjaxControlToolKit controls I have drag and drop one ajax control (ex:PasswordStrength control) from Toolbox and added ScriptManager to program and after completion of everything I tried to run the application at that time unexpectedly I got error like “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”.
To solve this probelm I changed my asp ScriptManager in program to ajax ToolkitScriptManager just like below.
<asp:ScriptManager ID="scriptmanager" runat="server"></asp:ScriptManager> |
To
<asp:ToolkitScriptManager ID="scriptmanager1" runat="server"> </asp:ToolkitScriptManager> |
Here if you observe above code for ToolkitScriptManager I declared asp:ToolkitScriptManager here asp is a TagPrefix of AjaxControlToolkit reference
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> |
If you change the TagPrefix name you need to change your asp:ToolkitScriptManager to TagPrefixname:ToolkitScriptManager
I hope it helps you to solve the Toolkitscriptmanger problem in ajax using asp.net.
Happy Coding……
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
4 comments :
how to using ajax with example now i am added ajaxtoolkit
You nailed it for me bro. Timely help when needed.
I am the ASP.NET ScriptManger, I really like the way it is written, clear and precise.
thank you....
Note: Only a member of this blog may post a comment.