Friday, September 14, 2012

How to install ASP.net AJAX Control ToolKit

 

ASP.net AJAX Control ToolKit can be downloaded from here:

http://ajaxcontroltoolkit.codeplex.com/

To add Ajax Control Toolkit to Visual Studio follow these steps:

1)Right Click any tab in the toolbar and select “Add Tab” . This adds a new tab in the toolbar. Name it as “Ajax Toolkit Controls”

1

2)Now right click on this tab and Select “Choose Items” option. It opens “Choose Toolbox items” window. In that under “.Net Framework Components” tab browse the folder having AjxControlToolKit.dll and add the two components “Accordion and Accordion Pane” and click ok.

2

 

 3

3)This adds all the controls that are present in the library.

4)Now register the controls in your page using @Register directive and use all the controls in the library with the TagPrefix name mentioned.

 
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="ajaxToolkit" %>
 
                                                OR
 
1) Add the following Code to Web.Config file.

 
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
 
And make sure “AjaxControlToolKit.dll” is in your bin folder.

NOTE :  If  we add namespace in the web.config file , it makes Ajax Controls available in all the pages.

2 comments:

  1. It is really a great work and the way in which u r sharing the knowledge is excellent.Thanks for helping me to understand basic concepts. As a beginner in Dot Net programming your post help me a lot.Thanks for your informative article.
    dot net training and placement in chennai | dot net training center in chennai

    ReplyDelete