May 2006

15 articles published in May 2006

  1. Validate a GUID in C#

    · 1 min read

    I recently needed to validate a GUID in C# and found this article on how to do it. I've simplified it to make it suit the problem I was trying to solve. Here's what I did with it: private static Regex isGuid = new Regex(...

  2. Web statistic applications do not agree

    · 2 min read

    Working in the web marketing statistics business, I know how difficult it is to produce reliable statistics about visitors and their actions. A good web stat application, whether it is behavioral or marketing related...

  3. What makes a good programming book?

    · 2 min read

    During the last couple of years, I’ve been reading quite a few books about various programming topics and related technologies. Some of them take a very practical approach with a lot of examples and some take a more...

  4. Use If-Modified-Since header in ASP.NET

    · 2 min read

    If you are building a high traffic website, you are probably concerned about bandwidth. Many hosting centres charge based on the amount of bandwidth you use, and it can be rather expensive for high traffic sites. This is...

  5. Extending the Test Browser

    · 1 min read

    In my efforts to improve the web developer's Test Browser , I have now added 3 new feature. Cookie watcher (the name and value) Link list window (the URL, title- and accesskey tag) Image list window (the URL and alt tag)...

  6. Testing the size of the viewstate in ASP.NET

    · 2 min read

    When you are developing an ASP.NET web form, you want to make sure that the viewstate isn't larger than it has to be. The more viewstate you've got, the longer the page takes to render in the browser. I have often seen...

  7. A web developer’s browser

    · 4 min read

    As a web developer, I do a lot of testing against different browsers and validating to W3C standards. These are the two things I spend most time doing when testing the HTML interface. It has become a common thing to do...

  8. Bind fonts to a dropdownlist in C#

    · 1 min read

    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=...

  9. Remove whitespace safely at runtime

    · 1 min read

    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...

  10. Cache dynamic generated images in ASP.NET

    · 1 min read

    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...

  11. Which is the better syntax?

    · 1 min read

    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...

  12. The .NET CLR class that doesn’t exist

    · 1 min read

    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...

  13. Consolas font for ClearType screens

    · 1 min read

    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...

  14. Wulffmorgenthaler’s new website

    · 1 min read

    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...

  15. Force length on integer in C#

    · 1 min read

    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...