ASP.NET Ajax and Community Server
I decided I wanted to use some features from ASP.NET Ajax and the AjaxControlToolkit in my Community Server install. It was actually relatively simple. Here's what I did:
- Download and install ASP.NET Ajax
- Download and build the AjaxControlToolkit. Install AjaxControlToolkit.dll to GAC (copy to c:\WINDOWS\assembly, or use gacutil /i).
- Create a new ASP.NET Ajax WebSite in Visual Studio.
- Grab everything from the web.config in the new WebSite.
- Merge into web.config in Community Server.
- Add the following to the web.config:
<pages>
<controls>
<add tagPrefix="AJAX" namespace="System.Web.UI"
assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="AJAXKIT" namespace="AjaxControlToolkit"
assembly="AjaxControlToolkit, Version=1.0.10201.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
</controls>
</pages>
It really was that simple. I was able to add a ScriptManager to my master page as required by ASP.NET Ajax and then I was able to add AjaxControlToolkit controls to my page and they just worked. If you notice the 'Blog Actions' area on the right - you can click it and it will expand. This is the CollapsiblePanelExtender from the AjaxControlToolkit at work.
(Although this site doesn't quite work with Firefox yet...)