The ASP.NET MVC HTML5 Toolkit needs your help!

The ASP.NET MVC HTML5 Toolkit has been running as an open source project since August 2010. It contains a rich set of controls that you can use to build ASP.NET websites using HTML5. If you've never used it before, it can be a great way to take advantage…

Convert JSON to a C# Class

As a web developer, I regularly write code to consume and create data in a JSON format. It's a simple and easy way to represent data as a string and if you work with JSON every day, you'll know how much easier it is to use than XML. If you…

What is the difference between Build and Rebuild in Visual Studio?

If you are a developer that uses Visual Studio as your IDE, you will be familiar with the Build and Rebuild tasks. I regularly write code in Visual Studio and am used to hitting the Build command when I am developing, but have often wondered what is actually happening under…

Visual Studio - Why should I remove unused references?

When it comes to writing code, I like everything to be neat and follow a certain set of coding guidelines. I like to adhere to the principle that I always code as if the next person who ends up maintaining my code is a violent psychopath who knows where I…

Validating email addresses in .NET - Handy Tip

If you've ever written any code that sends emails before, I'm pretty sure that you've had to validate the email addresses that are entered by users. Email address validation can be tricky at the best of times and with international domain names in email addresses, almost anything is possible. In…

Extending System.Web.Optimization

The ASP.NET framework is packed with loads of great features and with each release it seems to get better and better. One of my favourite features is the bundling and minification classes that optimize JavaScript and CSS files in a website to reduce file size and improve page performance.…

Working with multiple Web.Config files

When dealing with multiple development environments, it can often be quite tricky to keep track of the different environment specific settings that you may have in place. Fortunately, Visual Studio has a handy feature that allows you to have more than one Web.Config file for different environments. I have…

Fast ASP.NET Websites Competition - Results

The results are in! Thank you to all the people who entered the competition and tweeted about the book. The competition closed on the night of the 22th October 2013, and the number of entries was fantastic. I can reveal that the following people were chosen at random using random.…

A Simple HTML Minifier for ASP.NET

I have previously blogged about the importance of serving your users web pages with speedy load times. Poor web performance equals lost revenue and customers. As you continue to build and improve on the web performance of your site, you will need to look for ingenious ways to squeeze those…