Using AJAX Control Toolkit with SharePoint 2010

 Click below link and download Ajax control tool kit
Copy the “AjaxControlToolkit.dll” file into the “C:\inetpub\wwwroot\wss\VirtualDirectories\portno\bin”
Open up your Web.config file and find the <assemblies> section, Under that add below tag
<add assembly=”AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e” />
Also add the following entry in the Web.config file in the <SafeControls> section:
<SafeControl Assembly=”ajaxcontroltoolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL”Namespace=”AjaxControlToolkit” TypeName=”*” />

Visual Studio 2010

Start a new Web Part project. When you have the project open, add a new reference to the project by browsing to the “AjaxControlToolkit.dll” file in the “<Drive>\inetpub\wwwroot\wss\VirtualDirectories\80\bin”  directory.
Once you have this added to your project, go ahead and add the following line to your user control:
<%@ Register Assembly=”AjaxControlToolkit” Namespace=”AjaxControlToolkit” TagPrefix=”asp”%>
Now, add a new Tab to your Toolbox, then right click and ‘choose items’. Browse to the “AjaxControlToolkit.dll” file in the “<Drive>\inetpub\wwwroot\wss\VirtualDirectories\80\bin”  directory and add the controls. You should see the following results:

No comments:

Post a Comment