introduction to asp.net mvc - brad wilsonhow asp.net mvc works routes define how requests are...
TRANSCRIPT
![Page 1: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/1.jpg)
Introduction toASP.NET MVC
Brad Wilson, ASP.NET MVC team
[email protected]://bradwilson.typepad.comhttp://twitter.com/bradwilson
Thursday, July 9, 2009
![Page 2: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/2.jpg)
ASP.NET WebForms
Thursday, July 9, 2009
![Page 3: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/3.jpg)
WebForms Illustrated
PageRequest
Thursday, July 9, 2009
![Page 4: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/4.jpg)
WebForms Illustrated
Page ?Magic
HappensHere
Thursday, July 9, 2009
![Page 5: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/5.jpg)
WebForms Illustrated
PageResponse
Thursday, July 9, 2009
![Page 6: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/6.jpg)
Model-View-Controller(Separated Presentation)
Thursday, July 9, 2009
![Page 7: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/7.jpg)
Model
Domain-specific representation of data
Business logic
Storage layer is an implementation detail
Thursday, July 9, 2009
![Page 8: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/8.jpg)
View
Presents data to the user
Read-only views as well as forms
Minimal display-only logic
Thursday, July 9, 2009
![Page 9: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/9.jpg)
Controller
Responds to requests
Connects models to view
Invokes model code as appropriate
Thursday, July 9, 2009
![Page 10: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/10.jpg)
MVC Illustrated
Controller
Request
Thursday, July 9, 2009
![Page 11: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/11.jpg)
MVC Illustrated
Controller
Model
State Change
Thursday, July 9, 2009
![Page 12: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/12.jpg)
MVC Illustrated
Controller
Model
View Display
Thursday, July 9, 2009
![Page 13: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/13.jpg)
MVC Illustrated
Controller
Model
View
Get Data
Thursday, July 9, 2009
![Page 14: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/14.jpg)
MVC Illustrated
Controller
Model
View
Response
Thursday, July 9, 2009
![Page 15: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/15.jpg)
SingleResponsibility
Principal
Thursday, July 9, 2009
![Page 16: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/16.jpg)
How ASP.NET MVC Works
Routes define how requests are dispatched
Controller is a class; action is the method that’s executed
By default, views are .aspx files without code-behind
Thursday, July 9, 2009
![Page 17: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/17.jpg)
Demo
Thursday, July 9, 2009
![Page 18: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/18.jpg)
Resources
Thursday, July 9, 2009
![Page 19: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/19.jpg)
MVC Futureshttp://aspnet.codeplex.com/
“Missing” HTML helpers (button, image, mailto)
Expression-based HTML helpers
Asynchronous controllers
Model binders (byte array, LINQ to SQL binary, upload)
Controller attributes (AcceptAjax, ContentType, RequireSsl)
MVC server controls (with designer support)
Thursday, July 9, 2009
![Page 20: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/20.jpg)
MVC Contribhttp://mvccontrib.codeplex.com/
Dependency Injection Controller FactoriesCastle Windsor, Ninject, Unity, Spring.net, StructureMap
Alternate View EnginesSpark, Brail, NVelocity, XSL-T
Sub-Controllers, Convention ControllerFluent HTML HelpersSnippets for Visual Studio & Resharper
Thursday, July 9, 2009
![Page 21: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/21.jpg)
http://www.asp.net/mvcDownloads
Online documentation
Step-by-step tutorials
Instructional videos
Site design gallery
Discussion forums
Thursday, July 9, 2009
![Page 22: Introduction to ASP.NET MVC - Brad WilsonHow ASP.NET MVC Works Routes define how requests are dispatched Controller is a class; action is the method that’s executed By default,](https://reader033.vdocument.in/reader033/viewer/2022050305/5f6d65014c52061cab1c9bfa/html5/thumbnails/22.jpg)
Blogs
Scott Guthrie http://weblogs.asp.net/scottgu/
Phil Haack http://haacked.com/
Rob Conery http://blog.wekeroad.com/
Scott Hanselman http://www.hanselman.com/
Me! :) http://bradwilson.typepad.com/
Thursday, July 9, 2009