Posts about Dev

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…

Griffin.Container – “The drunken IoC container”

(I started writing this blog entry on Friday night, but somehow I didn’t manage to finish it.)

Griffin.Networking – A somewhat performant networking library for .NET

Disclaimer: The current framework release is a beta. It should be reasonably stable, but don’t blame me if it blows up your computer.

griffin.editor: Added support for Google Prettify

I’ve just refactored the highlighting features of griffin.editor. You can now use your favorite highlighter by implementing the…

Two new jQuery plugins

I’ve created examples for two of my newer jQuery plugins:

A JavaScript selection script

I wanted a lightweight, cross-browser plugin to be able to handle selections in a text area (for my griffin.editor plugin). I didn’t find a suitable one…

Introducing griffin.editor – a jQuery textarea plugin

I’ve tried to find a jQuery editor plugin which works out of the box without configuration. The WMD editor used by stackoverflow.com looked nice but I…