I recently had to make a dropdownlist populated with fonts. Luckily, .NET allows you to use the installed fonts very easy. First, add a drowdownlist to your ASP.NET page like this: <asp:DropDownList runat= "Server" id=...

A couple a months ago, I wrote how to remove whitespace from an ASP.NET page . However, the whitespace removal was to extreme for most websites. It mangled with the HTML to such an extent that only very simple websites...

I you have an image gallery with dynamically generated thumbnails; you should make sure that the browser is told to cache the thumbnails. If not, each image is generated every time the browser visits. It stresses the CPU...

A colleague and I had a discussion the other day about the use of curly brackets in C# and when to use them. The use of curly brackets is of course a part of the C# syntax, but you can use them in various different ways...

I’ve been getting a strange exception lately from my automatic ASP.NET e-mail exception logging service. It sends me this exception: The remote host closed the connection. The error code is 0x80072746. at...

I just stumbled upon the new Consolas Font Pack that Microsoft recently released. The font was created specifically for ClearType screens, making it much more pleasant to read text on you monitor. I think it was...

new site www.wulffmorgenthaler.com went live tonight and the feedback has already been overwhelming. The website has undergone a complete renewal in both design and features to give it a more modern look and feel. It was...

Today, I had to do file renaming on 1.000 files in a directory so they could be sorted alphabetically. I will not go into details, but it was a lot trickier than anticipated because the original filenames where very...

Working with strings is something all developers do all the time. It’s probably the thing we spend more time with above anything else. In C# 2.0 many new features for string manipulation has been added, so I’ll dig into...

If you ever tried to validate a web page to the W3C standards you might have experienced some differences between the code that is generated to your browser and the code that the validators see. That's because ASP.NET...