Introduction to ASP'NET MVC - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

Introduction to ASP'NET MVC

Description:

Routes define how requests are dispatched ... Online documentation. Step-by-step tutorials. Instructional videos. Site design gallery ... – PowerPoint PPT presentation

Number of Views:2534
Avg rating:3.0/5.0
Slides: 23
Provided by: seattle1
Category:
Tags: asp | mvc | net | introduction

less

Transcript and Presenter's Notes

Title: Introduction to ASP'NET MVC


1
Introduction toASP.NET MVC
  • Brad Wilson, ASP.NET MVC team
  • bradwils_at_microsoft.com
  • http//bradwilson.typepad.com
  • http//twitter.com/bradwilson

2
ASP.NET WebForms
3
WebForms Illustrated
Page
Request
4
WebForms Illustrated
?
Page
Magic Happens Here
5
WebForms Illustrated
Page
Response
6
Model-View-Controller(Separated Presentation)
7
Model
  • Domain-specific representation of data
  • Business logic
  • Storage layer is an implementation detail

8
View
  • Presents data to the user
  • Read-only views as well as forms
  • Minimal display-only logic

9
Controller
  • Responds to requests
  • Connects models to view
  • Invokes model code as appropriate

10
MVC Illustrated
Controller
Request
11
MVC Illustrated
Model
State Change
Controller
12
MVC Illustrated
Model
Controller
View
Display
13
MVC Illustrated
Model
Get Data
Controller
View
14
MVC Illustrated
Model
Controller
View
Response
15
SingleResponsibilityPrincipal
16
How ASP.NET MVC Works
  • Routes define how requests are dispatched
  • Controller is a class action is the method
    thats executed
  • By default, views are .aspx files without
    code-behind

17
Demo
18
Resources
19
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)

20
MVC Contribhttp//mvccontrib.codeplex.com/
  • Dependency Injection Controller Factories
  • Castle Windsor, Ninject, Unity, Spring.net,
    StructureMap
  • Alternate View Engines
  • Spark, Brail, NVelocity, XSL-T
  • Sub-Controllers, Convention Controller
  • Fluent HTML Helpers
  • Snippets for Visual Studio Resharper

21
http//www.asp.net/mvc
  • Downloads
  • Online documentation
  • Step-by-step tutorials
  • Instructional videos
  • Site design gallery
  • Discussion forums

22
Blogs
  • Scott Guthrie http//weblogs.asp.net/scott
    gu/
  • Phil Haack http//haacked.com/
  • Rob Conery http//blog.wekeroad.com/
  • Scott Hanselman http//www.hanselman.com/
  • Me! ) http//bradwilson.typepad
    .com/
Write a Comment
User Comments (0)
About PowerShow.com