How to use bundling to minify css and JavaScript in MVC and Umbraco

This post shows you how to set up and use bundling and minification in your MVC website. There are specific instructions on how set it up for Umbraco websites too.

Read More

How do you use the try catch finally blocks?

I must admit, in the past when I just want some code to run, but it's not critical if it fails, I have written a try catch block which looks like this.

Read More

How to create a custom styled twitter feed for your website

In this tutorial I show you how to create your own custom twitter feed for your website, which you will have full control over the styling, like the one I have on my about page. It also pulls through the follower count. This tutorial is meant for an MVC websit…

Read More

MVC Custom Model Property Validation Attributes

This post shows you how to create your own custom validation attributes in MVC. You can then decorate your model properties with them on your forms.

Read More

MVC client side form validation

This post shows you how you can do client side, unobtrusive validation on your MVC form. It assumes you have already set up your Model, View and Controller, but you just need to know how to get it to validate on the client side.

Read More

Maintain scroll position on postback

If you want your site to maintain the current scroll position when the page reloads or when you go to another page, this post should help you. It is ideal for paging, or for sites where you don't want to submit a form using Ajax, but you still want it to stay…

Read More