Latest posts

Easy model and validation localization in ASP.NET MVC3

Update I’ve written a more complete article about the framework at codeproject.com.

Getting information into the Layout without using ViewBag

You should avoid using the ViewBag as much as possible since you get run-time errors instead of compile-time errors if something fails. The problem is that it…

Begin/End asynchronous methods vs the new Async methods

A new asynchronous model was introduced in .NET 3.5sp1 where all methods end with ‘Async’, like Socket.ReceiveAsync. I will not give you any code samples;…

An easier way to debug Windows services

Have you grown tired of attaching the Visual Studio debugger to the service application? I’ve got the solution just for you! It’s a small helper class…

Inversion of control containers – Best practices

Disclaimer: I’ve used IoC containers for a couple of years now and also made a couple of my own (just to learn, nothing released). I’ve also consumed loads of…

Making custom DataAnnotation attributes work with MVC client side validation

In a previous blog entry I showed you an easier approach to localized DataAnnotation attributes.

Handling JSON responses in jQuery plugins

I’ve been coding several jQuery plugins lately and most of my plugins use Ajax and JSON to handle data. Each plugin gets a specific JSON string returned that…

Single Responsibility Principle

SRP is one of the easiest principles to learn, but one of the hardest to master. The reason for this is that it can be quite hard to see if a method or class…

A less evil singleton

I’ve been working a bit more with my Griffin Framework and I’m almost ready to release the Specification library in it. The specification library is an…

Reintroducing my compiler class

I created a class a couple of years ago which simplifies the CodeDom handling when you want to dynamically create objects in .NET. I got reminded of it when I…