Twitter About Home

Video: ASP.NET MVC – Show me the code!

Jan 26, 2009

If you’re new to ASP.NET MVC and are wondering what it’s all about, or if you have colleagues who don’t yet get it, then I hope this video might help. It’s a recording of a talk that I gave at the DDD7 conference in November 2008, covering the following: Read More

Quick update

Jan 24, 2009

Just wanted to raise some awareness of Mike Saunders’s interesting Validation Aspects project, which he’s just written an xVal rules provider for. Validation Aspects is a validation framework for WPF and ASP.NET MVC. It’s built using aspect-oriented programming (AOP) technology, which means it can inject rule-enforcing code directly into your property setters. At the moment this doesn’t fit totally seamlessly with ASP.NET MVC’s built-in model binder, but it has potential to work great with the forthcoming RC version of ASP.NET MVC. Read More

xVal – a validation framework for ASP.NET MVC

Jan 10, 2009

Update: The version of xVal presented in this post (and in its downloadable demo project) has been superseded by a newer version with extra features. This post is still a good introduction to the concept, but to download the latest version of xVal please go to http://xval.codeplex.com. Thanks!
Read More

Drag-and-drop sorting for our ASP.NET MVC list editor (in one line of code)

Jan 1, 2009

So you can use ASP.NET MVC’s model binding conventions to implement a list editor where the user can dynamically add and remove items. Great! But how can you let the user control the **order **of the items? For example, when editing a list of actors in movie, the user might want to move the most famous actor up to the top of the list. Read More

Editing a variable-length list of items in ASP.NET MVC

Dec 22, 2008

Update: This post was originally written for ASP.NET MVC 1.0 Beta. I’ve written a newer version of this post that applies to ASP.NET MVC 2.0 (Release Candidate). Note that this technique doesn’t actually work quite so easily with the final version of ASP.NET MVC 1.0, because its model binding convention changed in a way that means you have to massage the data into a numerical sequence for it to work. See comment #25 for a hint about one way to do this, or upgrade to ASP.NET MVC 2.0. Read More

The ego post

Dec 4, 2008

Somebody recently pointed out to me that my “About me” page was ridiculously sparse. It just stated my name and city, and that was it. Was I trying to hide something? No, I just didn’t think it was important to most readers. Read More