ASP.NET MVC V2 and I met Scott Gu

Lets get one thing out the way, yes I’m a geek, maybe not a super geek but a geek nevertheless. For me Scott Guthrie is up there with my Barca heroes Xavi, Iniesta Messi, Henry, Puyol, Valdés, Busquets, Krkić etc.

Yesterday I went to Scott Gu’s demo of ASP.NET MVC 2 (using the preview 2 release) in London and got to meet Mr ASP.NET MVC ;)

Scott Gu and Jag Reehal

I’m not going to cover everything that’s coming in ASP.NET MVC 2 in any depth because Scott Gu and Ben Scheirman’ First Look at ASP.NET MVC 2 do a good job of that.

It’s interesting to see that Microsoft is taking rapid web development and templating so seriously. Using the new UI helpers you can create html for labels, inputs and validation with just one line of code in your view instead of three.

This will save you time and mean there is less chance of having any html typos. It will also make it easier to refactor because everything is strongly typed! If you wanted to do this now you could create an html helper extension.

What you can’t do now (not easily anyway) is just have the UI helpers create the label, input and validation for an entire model with one line of code. This will save you even more time and means you don’t have to manually edit html in views just because you have added new properties to your view model.

Amazing I think you will agree, however I can’t help thinking it’s not going to be testable and could potentially lead to inadvertently displaying something you didn’t want to show.

Scott also showed how to use System.ComponentModel.DataAnnotations for validation and the client side validation which uses the jQuery validation framework. If you want that functionality now checkout Steve Sanderson’s excellent xVal framework.

I asked Scott if there was a possibility of not having ‘magic strings’ in action links and the render partial methods. He said they were working on it, so hopefully we could see something in preview 3.

As for release dates, Scott Gu suggested ASP.NET MVC 2 should be ready early next year.

I have no doubt that ASP.NET MVC 2 will make it even better to develop web sites with.

If you want to see a recording of Scott Guthrie talking about ASP.NET MVC 2 it’s available on Channel 9.


  • Franco

    Hey, great photo! :) Great meeting you last night. Could you email me the photo of me & Scott when you get a chance? Cheers!