ASP.NET MVC 2Kris van der MastSenior .NET developer - ArchitectOrdina
AgendaWhatWhyHowDemo time!!
WhatThe Microsoft implementation of the MVC patternMore control over HTML (closer to the metal)More testableAn option, not a replacement for Webforms
What: PatternModelCalculatorM: data and methods to manipulate V: displays the dataC: calls methods on Model and picks ViewControllerView
WhySeparation of concerns Allows for better testingBetter maintainabilitySEO and url friendlySource code is availablePluggable - extensible
Why (continued)Built on top of ASP.NET frameworkMaster pages, Use providers, httpmodules, httphandlers, session, ...Great tooling support in Visual Studio
One from scratchdemo
How: Request flow
demoAreas, templated helpers & data annotations, ...
ResourcesKris van der Masthttp://blog.krisvandermast.comhttp://twitter.com/KvdMSites
http://www.asp.net/mvc
http://forums.asp.net
http://haacked.com

Leb Dev Mvc2

Editor's Notes

  • #9 Routetable is created (only once)Routing module locates the route and creates the route handlerRoutehandler creates associated Http HandlerHandler determines the controller which is created by a ControllerFactoryController executes + Viewengine created if necessaryIViewEngine creates Iview which renders view