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.

Related posts

Monkeypatching For Humans

Although I love strings, sometimes the String class can break your heart. For example, in C#, there is no String.Left() function. Fair enough; we can roll up our sleeves and write our own function lickety-split: public static string Left(string s, int len) { if (len == 0 || s.Length == 0)

By Jeff Atwood ·
Comments

Department of Declaration Redundancy Department

I sometimes (often, actually) regress a few years mentally and forget to take advantage of new features afforded by the tools I’m using. In this case, we’re using the latest and greatest version of C#, which offers implicitly typed local variables. While working on Stack Overflow, I was

By Jeff Atwood ·
Comments

Productivity Tip: Upgrade Your Pentium 4

In C# and the Compilation Tax, several commenters noted that they have “fast dual-core computers,” and yet background compilation performance was unsatisfactory for them on large projects. It’s entirely possible that this is Visual Studio’s fault. However, I’d like to point out that not all dual core

By Jeff Atwood ·
Comments

C# and the Compilation Tax

Over the last four years, I’ve basically given up on the idea that .NET is a multiple language runtime. * The so-called choice between the two most popular languages, C# and VB.NET, is no more meaningful than the choice between Coke and Pepsi. Yes, IronPython and IronRuby are meaningfully

By Jeff Atwood ·
Comments

Recent Posts

Let's Talk About The American Dream

Let's Talk About The American Dream

A few months ago I wrote about what it means to stay gold — to hold on to the best parts of ourselves, our communities, and the American Dream itself. But staying gold isn’t passive. It takes work. It takes action. It takes hard conversations that ask us to confront

By Jeff Atwood ·
Comments
Stay Gold, America

Stay Gold, America

We are at an unprecedented point in American history, and I'm concerned we may lose sight of the American Dream.

By Jeff Atwood ·
Comments
The Great Filter Comes For Us All

The Great Filter Comes For Us All

With a 13 billion year head start on evolution, why haven’t any other forms of life in the universe contacted us by now? (Arrival is a fantastic movie. Watch it, but don’t stop there – read the Story of Your Life novella it was based on for so much

By Jeff Atwood ·
Comments
I’m feeling unlucky... 🎲   See All Posts