Latest posts

Resolving all services through dependency injection in Griffin.Container

I’ve just added a new feature to Griffin.Container: Support for resolving all implementations of a service by using constructors.

To “var” or not to “var”, is that really the question?

There are several blog posts and discussions about whether to use var or not. They tend to focus on whether the type is obvious or not. It seems like people…

Updated the localization administration area

I’ve updated the administration area for the localization features in an attempt to make it easier to handle the localization.

New article: Having fun with Griffin.Container

I’ve written a new article which guides you through most of the features in Griffin.Container.

Griffin.Container: Introducing the command support

Commands are a great way to decouple logic in an application, since the command invoker has no knowledge of where the command is handled. You also move the…

ASP.NET MVC3: Custom error for 401 Unauthorized

Have you tried to display a custom error message if authorization fails..

Double check pattern

I just answered a question on SO about lazy loading which involved the double check pattern. It’s a really useful pattern for lazy loading since it hurts…

Adding a required indicator in ASP.NET MVC3 using jQuery

You might want to visually indicate that fields in ASP.NET MVC3 are required.

How to handle transactions in ASP.NET MVC3

I got annoyed about having to repeat the transaction handling in every POST method of my controllers. First of all: I don’t want to have to take the unit of…

Protect your data!

The introduction of OR/M libraries and strongly typed views/view models has made a lot of programmers switch to the dark side. Let’s fight this evil!