Tag Archives: AJAX Control Toolkit

AjaxControlToolkit – How to Remove the Additional Language Files

On a recent project, I wanted to remove all of the additional language folders/files which come with the AjaxControlToolkit binary. That is, the ones which can be seen in the following screenshot:

Toolkit dll with All Localisation Files

Toolkit dll with All Localisation Files

I needed to conserve as much disk space as possible on this project and had no need for any internationalisation.

So, here is how I accomplished that (note: for those who have read my previous post AJAX Control Toolkit – Getting Started, the first 4 steps are the same):

  1. navigate to http://www.codeplex.com/AjaxControlToolkit , and click on the Downloads link (far right of the page).
  2. assuming you are running V3.5 SP1 of the .NET framework, download the dll only zip archive – AjaxControlToolkit-Framework3.5SP1-DllOnly.zip
  3. extract the contents of that archive into a directory on your machine. I created a directory called AJAX Control Toolkit in C:\Program Files, and placed all of the files from the archive in that.
  4. create a new Web Site in Visual Studio 2008.
  5. create a new folder called Bin.
  6. add AjaxControlToolkit.dll (from C:\Program Files\AJAX Control Toolkit) to the Bin folder
  7. add the following element to web.config (inside the <pages><controls></controls><pages> element)

    <add tagPrefix=ajaxToolkitassembly=AjaxControlToolkit namespace=AjaxControlToolkit/>

  8. add a Reference (to the Solution) to the AjaxControlToolkit.dll assembly

I hope this helps anyone else who might have been trying to figure out how to go about this.

AJAX Control Toolkit – Getting Started

Although I had trouble finding information about getting started with the AJAX Control Toolkit, it really is quite straightforward. I’ll break it down into steps:

  1. navigate to http://www.codeplex.com/AjaxControlToolkit , and click on the Downloads link (far right of the page).
  2. assuming you are running V3.5 SP1 of the .NET framework, download the dll only zip archive – AjaxControlToolkit-Framework3.5SP1-DllOnly.zip
  3. extract the contents of that archive into a directory on your machine. I created a directory called AJAX Control Toolkit in C:\Program Files, and placed all of the files from the archive in that.
  4. create a new Web Site in Visual Studio 2008.
  5. with your Toolbox visible, right-click on one of the headers in the Toolbox and click Add Tab, as depicted below:

    Adding a Panel to the Toolbox

    Adding a Tab to the Toolbox

  6. Name the new tab “AJAX Control Toolkit”.
  7. Right-click on the new heading and click “Choose Items”.
  8. Click the Browse button, navigate to the folder in which you extracted the AJAX Control Toolkit’s dll, select that file, then click open.
  9. Click OK. You should then see the new tab, which you just created, fill up with controls (from the AJAX Control Toolkit).
  10. Before using any of the controls, I recommend altering a default setting. At the top of the page, you will see the following new markup:
    <%@ Register assembly=”AjaxControlToolkit” namespace=”AjaxControlToolkit” tagprefix=”cc1″ %>

    Change tagprefix=”cc1″ to tagprefix=”AJAXControlToolkit”. This naming convention will make for easier maintenance and development.

To see the controls in action, there is an excellent walkthrough here, which highlights its features. You can run your own local version of that walkthrough if you also download the version of the Toolkit which has the source code included.

I hope others find this useful.