ASP.NET MVC preview available
The first public preview of Microsoft’s ASP.NET MVC (model view controller) framework is now available.
Download ASP.NET 3.5 Extensions (EXE) (3.7 MB)
Download MVC Toolkit (ZIP) (400 KB)
The project takes cues from Ruby on Rail’s success and looks to address dissatisfaction with the testability and maintainability of WebForms applications and provides an alternative approach that is centered around views, models, controllers with a clear separation of concern and the ability to mock test the individual elements.The official documentation is online and there is a great four-part series over at Scott Guthrie’s blog which covers:
Phil Hack and Rob Conery are both now at Microsoft and working on the framework, they have some interesting things to say on it too:
- Extending to add conventions
- Test-driven development and dependency injection
- Using user interface (HTML) helpers
- Using RESTful architecture
- Using Ajax
A few other people have already written about the subject too:
- Jeffrey Palermo’s podcast interview
- Fredrol Normén on exception handling
- Brad Abrams on creating an RSS feed with LinqToSql
- Dino Esposito on architecture
- MVC Contrib open-source additions & helpers
Most of the examples and many of the routines/helpers fail to encode output which opens them up to HTML and script injection vulnerabilities. Remember to HttpUtility.HtmlEncode output and use Reflector if you’re unsure whether a function is encoding correctly.
The CTP requires Visual Studio 2008 to get the most out if it so either head over to MSDN Subscriber Downloads or grab a 90-day trial edition if you don’t already have it installed.
[)amien
10 responses