70 likes | 256 Views
ASP.net MVC. Owen Evans Developer, Xero. Welcome to the new (old) way. MVC – Model-View-Controller about architectural separation not a new pattern, first attributed to Trygve M. H. Reenskaug , working in smalltalk at Xerox Parc Less to think about (no page object model)
E N D
ASP.net MVC Owen Evans Developer, Xero
Welcome to the new (old) way • MVC – Model-View-Controller • about architectural separation • not a new pattern, first attributed to Trygve M. H. Reenskaug, working in smalltalk at Xerox Parc • Less to think about (no page object model) • easier to unit test
MVC vs. Classic ASP.net ASP.net Classic ASP.net MVC
Putting the R in MVC • Routing is part of the major power of MVC • Many URLs can link to the same controller, unlike code behinds which have a 1-1 link with .aspx pages, controllers can have multiple views • Controllers are usually grouped around conceptual objects within the domain • Tasks, Posts, Products
Questions? • Ask Scott Hanselman…….
References • ASP.net MVC Official Site http://www.asp.net/mvc/ • MVC Xerox Parchttp://heim.ifi.uio.no/~trygver/themes/mvc/mvc-index.html • Phil Haack