I <3 Steve McConnell*
Coding Horror
programming and human factors
by Jeff Atwood

January 10, 2005

WebFileManager updated

I updated the WebFileManager CodeProject article with some enhancements. It now supports zipping files and column sorting:

WebFileManager UI

I included both the code-behind and inline code versions of the page in the solution archive this time. There's also a new dependency on SharpZipLib, assuming you want the remote file zipping support.

I also found out the hard way that..

  1. SharpZipLib, like the Java class it apes, is completely incapable of modifying an existing Zip archive. I wonder if .NET 2.0 includes any native support for Zip, GZip, etc?
  2. FireFox doesn't support alignment in the <COLGROUP> tag. This makes specifying column attributes for alignment kind of a per-row pain in the butt. To be fair, CSS and HTML both kinda suck when referencing table columns. Cells and rows, yes, columns, not so much.

Posted by Jeff Atwood    View blog reactions

 

« MAME Cocktail Arcade The real cost of performance »

 

Comments

J# has built-in zip libraries. I guess that's native .NET support if you want to include the dll in your project.

There's an article on MSDN Mag about it:
http://msdn.microsoft.com/msdnmag/issues/03/06/ZipCompression/default.aspx

It says it can modify existing zip files. I haven't verified.

Darrell on January 10, 2005 01:41 PM

I'm sure it's the same Zip/Gzip class that is in Java.. and that class cannot MODIFY a Zip file. Create, yes, but not modify.

Would be nice if Zip/Gzip was native to .NET 2.0, sure is handy.

Jeff Atwood on January 10, 2005 01:45 PM

Jeff,

How about creating a setup that can be installed on any IIS box?

rizzo on January 11, 2005 01:02 PM

Rizzo, what do you mean? I'm not following you.

Jeff Atwood on January 11, 2005 05:49 PM

What I mean is that if you add a setup project to your solution, it will automatically create a setup.exe for you and you don't have to explain to people how to install it.

rizzo on January 15, 2005 01:39 AM

Hi,
it is possible to write several AllowedPathPattern in web.config? If YES, how?

Regards, Marko

Marko Lutz on June 29, 2005 10:25 AM

Yes-- just delimit your regular expressions with a pipe char

Eg,

"c:\wwwroot\apples|c:\wwwroot\oranges|c:\wwwroot\pears"

Just watch out for regex (or XML!) characters that need to be escaped

Jeff Atwood on June 29, 2005 04:44 PM

Is it possible to use paths like c:\Windows\

I'm getting exceptions trying to do it!

Thanks

Andrey on September 28, 2007 01:53 PM







(hear it spoken)


(no HTML)




Content (c) 2008 Jeff Atwood. Logo image used with permission of the author. (c) 1993 Steven C. McConnell. All Rights Reserved.