I have already blogged about how to get FreeTextBox 3.0.x working without an aspnet_client subfolder with its hundreds of files. FreeTextBox has seen several revisions since that post, and amazingly they still have not got it right.
I just tried FreeTextBox 3.1.1. They have it much closer. Now I don't have to decompile their assembly to fix their obvious bugs to get it working. But their README file that comes with the assembly and their online installation instructions wiki still claims that with ASP.NET 2.0 you don't have to add httpHandlers to your Web.config file or the SupportFolder="~/FtbWebResource.axd" attribute to your web page. And it's still wrong, at least for one, maybe both of those points, depending on your ASP.NET version.
So here are the instructions (much simpler than the old ones for 3.0.x) to get your FreeTextBox 3.1.1 working without aspnet_client in ASP.NET 2.0:
- Add FreeTextBox.dll to your web application's Bin directory.
- If you are using any version of ASP.NET 2.0 prior to the RTM version, add this xml to your Web.config file between your
tags. I experimented and found that even Microsoft's RC version required this next segment, although its RTM version does not.
<system.web> <!-- rest of your Web.config file content --> <httpHandlers> <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox"/> </httpHandlers> </system.web>
- Add this tag to the top of your web page:
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
- And this tag where you want your FreeTextBox to appear on your web page. The SupportFolder attribute is not mentioned as required on the FreeTextBox's installation wiki or in its readme file, but it's still required.
<FTB:FreeTextBox ID="FreeTextBox1" SupportFolder="~/FtbWebResource.axd" runat="Server"/>
See? Much simpler than FTB 3.0.x, but still, the FTB claims you can leave out step 2, and part of step 4 (the SupportFolder attribute). Beware.
And remember, if you want to test my instructions and remove the SupportFolder attribute, that you must re-save Web.config with each change of your