Asp .Net MVC

+2

No comments posted yet

Comments

Slide 1

Introduction to MVC Presented by Geethika

Slide 2

Introduction to MVC Architecture of MVC DEMO Conclusion Contents

Slide 3

MVC A design pattern Acronym for Model ● View ● Controller Separation of concerns

Slide 4

ASP.NET MVC A new Web Application Project type Simply an option Not a replacement for WebForms Builds on top ASP.NET Manual vs Automatic Transmission

Slide 5

MVC

Slide 6

A Little More Detail Browser requests /Products/ Route is determined Controller is activated Method on Controller is invoke Controller does some stuff Renders View, passing in custom ViewData URLs are rendered, pointing to other Controllers

Slide 7

MVC Step 1 Incoming request directed to Controller

Slide 8

MVC Step 2 Controller processes request and forms a data Model

Slide 9

MVC Step 3 Model is passed to View

Slide 10

MVC Step 4 View transforms Model into appropriate output format

Slide 11

MVC Step 5 Response is rendered

Slide 12

Even More Detail – Request Flow You can futz at each step in the process

Slide 13

Framework Goals Frictionless Testability Tight control over markup User/SEO friendly URLs Leverage the benefits of ASP.NET Conventions and Guidance

Slide 14

Separation Of Concerns Each component has one responsibility SRP – Single Responsibility Principle DRY – Don’t Repeat Yourelf More easily testable Helps with concurrent development

Slide 15

Extensible Replace any component of the system Interface-based architecture Very few sealed methods / classes Plays well with others

Slide 16

Providers still work Membership, Caching, Session, etc. Views leverage .aspx and .ascx But they don’t have to if you don’t want them to Within System.Web namespace Feature Sharing

Slide 17

REST-like Fits with the nature of the web MVC exposes the stateless nature of HTTP Friendlier to humans Friendlier to web crawlers Search engine optimization (SEO)

URL:
More by this User
Most Viewed