CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

David Hayden [MVP C#]

         .NET Tutorials, Patterns, and Practices

FreeTextBox v3.0.6 - Images are Embedded Resources - Excellent!

I am definitely late in the game, but I decided to upgrade to FreeTextBox v3.0.6 on a new project.

In the past, all images, javascript, and XML files used with FreeTextBox were stored as external files on the web server.  It wasn't a pain to manage them by any means, but it is absolutely delightful that v3.0 embeds them as resources because FreeTextBox deployment is an absolute SNAP!

In ASP.NET 1.1, you only have to add a handler to your web.config.  Apparently in ASP.NET 2.0 you don't have to do anything.

From the installation guide:

Instructions

As of 3.0 all the images, javascript and xml is stored inside the FreeTextBox.dll. In ASP.NET 2.0 these files are automatically pulled from the FreeTextBox.dll. In ASP.NET 1.x, you need to add the following httpHandler to web.config:

  <?xml version="1.0" encoding="utf-8" ?>
  <configuration>
   <system.web>
    <httpHandlers>
     <add verb="GET" path="FtbWebResource.axd"
type="FreeTextBoxControls.AssemblyResourceHandler,
FreeTextBox" /> </httpHandlers> <system.web> <configuration>

 

FreeTextBox is just getting better and better!


Published Oct 01 2005, 01:15 PM by David Hayden
Filed under:

Comments

Jeffrey Palermo said:

It is an excellent idea to use resources in this manner to cut down on the number of installed artifacts. I was similarly delighted to discover this.
# October 9, 2005 11:44 AM
Check out Devlicio.us!

This Blog

Syndication

News

CodeBetter.Com Home