Posts about ASP.NET MVC

Return Markdown directly from your ASP.NET MVC controller

Want to return markdown directly from your ASP.NET MVC controller? Here is how you do it.

Easier error handling in ASP.NET MVC5

I’ve written a few posts about error handling in ASP.NET MVC. It’s not easy to get it right since the MVC pipeline uses a different error handling method than…

Better support for localization in ASP.NET.

If you’ve tried the built in localization features in ASP.NET you’ve probably written cluttered view models like:

Displaying date/time using the user timezone in ASP.NET MVC

This post will show you how you can display date/time using the user timezone (without it being configured anywhere in your application).

How to dynamically modify model meta data in ASP.NET MVC

Normally you just add the [Required] attribute to a view model to make it required. But I needed a way to configure whether a field should be required or not.…

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.

ASP.NET MVC3: Custom error for 401 Unauthorized

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

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…

Liskov’s Substitution Violation in the real world

I was creating an integration between my own users table (or document since I use RavenDB) with the MembershipProvider in ASP.NET. I’m using the default SQL…