Actually SharePoint doesn't differ from any other ASP.NET web site to use the Control Toolit, there are only three things that you need to do:
- Make sure SharePoint has access to AjaxControlToolkit.dll
You can do this in two ways: either you deploy the assembly to the Global Assembly Cache (GAC) or you put in the \BIN folder of the SharePoint site's folder. - Add an assembly reference in the web.config (note: for the future versions of the Control Tookit, the version number can change!):
<assemblies>
...
<add assembly="AjaxControlToolkit, Version=1.0.10201.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
....
</assemblies> - Add the tagprefix for the Control Toolkit in the web.config:
<controls>
...
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
....
</controls>
That's it! Now you can make use of the Control Toolkit coolness in your SharePoint 2007 sites! If you want to test if the Control Toolkit is working on your installation: I've upload a very small example to CodePlex.
No comments:
Post a Comment