[ACCEPTED]-How do I install and use the ASP.NET AJAX Control Toolkit in my .NET 3.5 web applications?-.net-3.5

Accepted answer
Score: 38

Install the ASP.NET AJAX Control Toolkit

  1. Download the ZIP file AjaxControlToolkit-Framework3.5SP1-DllOnly.zip from 15 the ASP.NET AJAX Control Toolkit Releases page of the CodePlex web site.

  2. Copy 14 the contents of this zip file directly into 13 the bin directory of your web site.

Update web.config

  1. Put this 12 in your web.config under the <controls> section:

    <?xml version="1.0"?>
    <configuration>
        ...
        <system.web>
            ...
            <pages>
                ...
                <controls>
                    ...
                    <add tagPrefix="ajaxtoolkit"
                        namespace="AjaxControlToolkit"
                        assembly="AjaxControlToolKit"/>
                </controls>
            </pages>
            ...
        </system.web>
        ...
    </configuration>
    

Setup Visual Studio

  1. Right-click 11 on the Toolbox and select "Add Tab", and 10 add a tab called "AJAX Control Toolkit"

  2. Inside 9 that tab, right-click on the Toolbox and 8 select "Choose Items..."

  3. When the 7 "Choose Toolbox Items" dialog 6 appears, click the "Browse..." button. Navigate 5 to your project's "bin" folder. Inside 4 that folder, select "AjaxControlToolkit.dll" and 3 click OK. Click OK again to close the Choose 2 Items Dialog.

You can now use the controls 1 in your web sites!

Score: 12

You can easily install it by writing

Install-Package AjaxControlToolkit in 2 package manager console.

for more information 1 you can check this link

Score: 3

If you are using MasterPages and Content 8 pages in your app - you also have the option 7 of putting the ScriptManager on the Masterpage 6 and then every ContentPage that uses that 5 MasterPage will NOT need a script manager added. If 4 you need some of the special configurations 3 of the ScriptManager - like javascript file 2 references - you can use a ScriptManagerProxy 1 control on the content page that needs it.

Score: 1

you will also need to have a asp:ScriptManager 5 control on every page that you want to use 4 ajax controls on. you should be able to 3 just drag the scriptmanager over from your 2 toolbox one the toolkit is installed following 1 Zack's instructions.

Score: 1

It's really simple, just download the latest toolkit 11 from Codeplex and add the extracted AjaxControlToolkit.dll to your toolbox 10 in Visual Studio by right clicking the toolbox 9 and selecting 'choose items'. You will then 8 have the controls in your Visual STudio 7 toolbox and using them is just a matter 6 of dragging and dropping them onto your 5 form, of course don't forget to add a asp:ScriptManager to 4 every page that uses controls from the toolkit, or 3 optionally include it in your master page 2 only and your content pages will inherit 1 the script manager.

More Related questions