ASP.NET MVC Framework episode on DNRTV available

Subscribe here: http://feeds.feedburner.com/jeffreypalermo.

For those of you interested in the ASP.NET MVC Framework, Carl Franklin and I recorded a DNRTV show where I demonstrate building a full vertical slice of the application.  I don’t dumb it down, and if you aren’t familiar with NUnit testing, automated builds, IoC containers, DI, interface-based programming, etc, you’ll probably have to do a bit of research to follow along, but my goal was to show techniques I’d use on a real client project, not just show a _demo_.  I hope you enjoy.

If you want to know more about the ASP.NET MVC Framework, look backwards in my blog and also at the following places:

Improve maintainability of ASP.NET databinding

Most of us (I think) don’t have full browser automated testing through Watir or Selenium.  Because of that, even though we have tons of automated NUnit tests, we could still have problem in web pages in ASP.NET because these aren’t fully tested with the build.

Even with Resharper, refactoring often leaves bad property references in databinding code that looks like this:

<%# Eval(“EmailAddress”) %>

If we get rid of the EmailAddress property on the object we’re binding (or rename it), this would break.

If we convert the above line of code to the following, we benefit from strong typing (and Resharper helps us out a little more).  We can precompile the web application to ensure all references in web pages still work.  After all, compilation is a low-level form of testing.  It would alert us of a bug.

<%# ((Customer)Container.DataItem).EmailAddress %>