Twitter About Home

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

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:

Published Jan 26, 2009
  • Why ASP.NET MVC is worth caring about [first 10 minutes with Powerpoint]
  • What ASP.NET MVC is like to use [remaining 42 minutes of pure coding]

In the talk, I build a sample file-hosting application that demonstrates ASP.NET MVC’s approach to tidy code structure, clean URLs, full control over HTML markup, and simple Ajax. Here goes:

ASP.NET MVC – Show me the code

Sorry that the code is difficult to read at various points – hopefully the verbal description should explain adequately what’s going on.

With thanks to Liam Westley for physically mailing me the DVD, and to the DDD7 team and Microsoft UK for running and hosting such an excellent event and for filming the talks.

It’s kind of weird to watch myself! Hopefully though I can learn from my mistakes and deliver a slicker presentation next time… :)

Download the code used in this talk – you can get the completed source code for the “file host demo” that I built in this session here. Please note that this code is intended to work with the Beta version of ASP.NET MVC. It should be compatible with newer versions of ASP.NET MVC with some modifications, but I haven’t attempted it myself.

READ NEXT

Quick update

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.

Published Jan 24, 2009