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...
The new ASP.NET 2.0 provider model has once again amazed me. It lets you write to the EventLog, Sql Server and WMI as standard and lets you write your own provider that monitors the different events that occurs in a web...
Yesterday, I wrote about an XML country list that I couldn’t find on the Internet, so I generated one myself. That was possible because I had a list of countries in a database. But what about languages? Countries and...
Today, I had to bind a list of countries to a drop down list in ASP.NET 2.0. I wanted to use an XML file to store the countries. There are more than 200 so there was not way I was going to hard code them in the HTML. I...