Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

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.

Mar 21, 2011
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.

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.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

4 comments :

P. Thiyagarajan said...

how to using ajax with example now i am added ajaxtoolkit

Anonymous said...

You nailed it for me bro. Timely help when needed.

victoria said...

I am the ASP.NET ScriptManger, I really like the way it is written, clear and precise.

Anonymous said...

thank you....

Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.