Adding the ASP.NET AJAX Control Toolkit to Visual Studio

This is an update to a quite older post that used to be on my blog. Looking over Google Analytics and Google Webmaster Tools I noticed there was still traffic coming in to view the older post and receiving a 404 error instead of the information they were looking for. So I decided to sit down update what I remeber to be a very outdated post going back to the Microsoft Visual Studio 2010 Beta days with a more recent up to date version including instruction for manual installation as well as installation using NuGet which wasn’t around for the original post. Anyways enough babling onto the reason you may be here which is how to add the ASP.NET AJAX Control Toolkit to both Visual Studio 2010 and Visual Studio 2008.

If you are using Visual Studio 2010 the easiest way to install the ASP.NET AJAX Control Toolkit is by using NuGet. If you are using Visual Studio 2008 you will need to follow the manual installation instructions further down this post. Of course if you are using Visual Studio 2010 you may also use the manual instructions as well if you wish.

Installing Using NuGet: (Visual Studio 2010)

Fist off you will need to make sure you have the NuGet Package Manager installed. If you do not have NuGet installed you can download it here. Once you have installed NuGet you have two choices as to how to install the ASP.NET AJAX Control Kit. You can install it via either the NuGet Package Manager Console or via the NuGet GUI.

To use the NuGet Package Manager Console start Visual Studio 2010. Once Visual Studio 2010 is opened open the solution in which you wish to use the toolkit. Now that you have your solution open click on ”Tools > Library Package Manager > Package Manager Console” at the top of Visual Studio 2010. This will open up the Package Management Console within Visual Studio 2010. Next at the Package Management Console command prompt, “PM>”, type the following and press enter.

PM> Install-Package AjaxControlToolkit

Once the Package Management Console command has completed the toolkit will have been successfully added and referenced within your solution and is ready to be used.

If you wish to use the NuGet GUI as before start Visual Studio 2010 and open the solution in which you wish to use the tookit. Click on “Tools > Library Package Manager > Manage NuGet Packages…” at the top of Visual Studio 2010. Once the GUI is openclick on the “Search Online” textbox at the top right hand corner and type “ajax” then hit the enter key. Look through the list of packages found in the center of the GUI for “AjaxControlToolkit, click on it then click “Install”. The toolkit will now have been added to and referenced within your solution and is ready to be used.

Installing Manually: (Visual Studio 2010 and Visual Studio 2008)

To install the ASP.NET Ajax Control Toolkit manually into either Visual Studio 2010 or Visual Studio 2008 you will fist need to download the latest version of the toolkit from the project download page which can be found here. You will find the binary downloads for both frameworks 3.5 and 4.0 are available. Download the one you wish to use and extract the files somewhere on your hard drive remebering the path to where you extracted the files.

Next you will need to add the toolkit to your toolbar within Visual Studio. To do so right click on an empty portion of your toolbar and click on “Add Tab”. This will add a new tab to your toobar. Next name the toolbar something like “ASP.NET AJAX Control Toolkit”. Next right click on your newly created tab and click on “Choose Items..”. Make sure the “.NET Framework Components” tab is selected then click on “Browse…”. Browse to where you extracted the toolkit files to earlier and open the file named “AjaxControlToolkit.dll” then click “OK”. You should now have available to you the ASP.NET AJAX Control Toolkit controls within your Toolbox.

10 thoughts on “Adding the ASP.NET AJAX Control Toolkit to Visual Studio

  1. Pooja

    Hi,

    I am not able to see the tab created in the toolkit. I can see that AjaxControlToolkit is successfully installed and it appears in the ‘References’ but not in the ToolKit. Please help..

    Reply
    1. Joe Post author

      Follow the steps in the last paragraph in the post. If you installed via NuGet look for the .dll in your solution’s directory if manually wherever you placed them.

      Reply
  2. nadeekadn

    i added ajax tool kit and i added calendar object for my project. after i run my application vs 2008 ask “script object builder.cs” how i solve this problem.

    Thanks.(NadeekaDN)

    Reply
    1. Joe Post author

      Sounds like you are getting an error somewhere in your code and the debugger is looking for the source for the AJAX Control Toolkit. Most the time it is a common mistake like not adding a ScriptManager to the page where you are adding the AJAX control.

      If you wish to download the source for the AJAX Control Toolkit you may do so from this page http://ajaxcontroltoolkit.codeplex.com/releases/view/27326. You can then link in the source for the AJAX Control Toolkit and debugging will continue.

      Reply
      1. Suvrakanta

        Thanks Dude…I can’t find that error last fivedays…Your article just help me out…….

        Thanks Once again..

        Reply
  3. nick

    I have installed Ajax Control Toolkit via Nugett and create a new tab in the toolbox and all working fine.. And i try to test its by drag htmleditor in a webform..After run in a chrome, htmleditor shows blank box , can anyone help me.

    Reply
  4. chinese eggplant recipes healthy

    Red Foods: watermelon, cherries, strawberries, tomatoes, raspberries, radishes,
    red bell peppers, apples, pomegranate. Another
    staple and popular Indian breakfast delicacy, it is made up of rice paste.
    Now you are ready to add your onions, green onions, celery and bell peppers.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>