I’ve written about whitespace removal before , but I think this is the best solution so far. It is a plug n’ play HTTP module that works simply by adding the class to the App_Code folder. It uses regular expressions to...
Social bookmarking is often thought of as being something used only on blogs. That’s probably because you only see them on blogs, when they in fact could be used at most other types of websites as well. It is a feature...
ASP.NET ships with a SqlMembershipProvider and a ActiveDirectoryMembershipProvider that makes user authentication and authorization very easy to implement, but for some reason those are the only membership providers...
Little Helper , the interactive help system for Headlight is now live and almost finished. It is build much like a Wiki so Headlight users can contribute and ask questions. I like to call it a good mix of a blog and an...
At work, we had to do wildcard searches using regular expressions to match allowed domain names. For instance, this expression “*.madskristensen.dk” should match “www.madskristensen.dk”. So, my boss Jimmi wrote a method...
Today I wrote a new dynamic RSS feed for a little project called Little Helper . It all works fine, but when I tried to validate it using FeedValidator , the pubDate was invalid. The validator told me that the date was...
In a recent web project I suddenly got an unexpected exception when I was uploading a file using a standard <asp:FileUpload /> control in ASP.NET 2.0. I’ve only been testing the website in Firefox at that point and...
Yesterday I had to come up with a method that retrieved the subdomain from the current web request on an ASP.NET website. I thought that the System.Uri class contained that information in an easy retrievable way, but no...
In C# 2.0 Microsoft introduces some new methods on the String class, one of them being Contains. The Contains method checks if a string in contained within another string in a case-sensitive way. It is very easy to use...
When building a new application, be it Windows Form or ASP.NET, security is an important factor to consider from the very beginning. There are hundreds of books and thousands of websites helping you to secure your...