13
Introduction to ASP.NET MVC Name Ravi Pahuja Organization Espire Info Labs Email [email protected]

Introduction To Asp.Net Mvc

Embed Size (px)

DESCRIPTION

Introduction To Asp.Net Mvc

Citation preview

Page 1: Introduction To Asp.Net Mvc

Introduction to ASP.NET MVCIntroduction to ASP.NET MVC

Name Ravi PahujaOrganization Espire Info LabsEmail [email protected]

Page 2: Introduction To Asp.Net Mvc

Session ObjectivesSession Objectives

• What is ASP.NET MVC?• What is MVC?

• Is it deprecating WebForms?• What are its value propositions?

• Is ASP.NET MVC right for you?• Can it ease some web development pain you’re currently having?TakeawaysTakeaways

Page 3: Introduction To Asp.Net Mvc

ASP.NET Then…ASP.NET Then…

CachingCaching ModulesModules

HandlersHandlersIntrinsicsIntrinsics

PagesPages ControlsControls

GlobalizationGlobalization

ProfileProfile

Master PagesMaster Pages

MembershipMembershipRolesRoles

Etc.Etc.

ASP.NET

One web applicationframework to rule them all…

Page 4: Introduction To Asp.Net Mvc

ASP.NET Now…ASP.NET Now…

ASP.NETDynamic Data

ASP.NETWebForms

ASP.NETMVC

Presentation

RuntimeASP.NET

Core

Page 5: Introduction To Asp.Net Mvc

WebForms is great, but

options are good…

WebForms is great, but

options are good…

Page 6: Introduction To Asp.Net Mvc

Master Page

Control

Control

No real role responsibility…No real role responsibility…

UIPresentation LogicBusiness LogicData Access

Who does what?How and when?

Control

ControlPage

Control

Control

Control

Control

Page 7: Introduction To Asp.Net Mvc

Control abstractions can be negative…Control abstractions can be negative…

Page 8: Introduction To Asp.Net Mvc

It isn't easy enough to test…It isn't easy enough to test…

Logic UI

Page 9: Introduction To Asp.Net Mvc

So how does ASP.NET MVC

differ?

So how does ASP.NET MVC

differ?

Page 10: Introduction To Asp.Net Mvc

MVC = Model-View-ControllerMVC = Model-View-Controller

ControllerController(Input)(Input)

ModelModel(Logic)(Logic)

ViewView(Presentation)(Presentation)

Separation of concerns!

Page 11: Introduction To Asp.Net Mvc

How does MVC look?How does MVC look?

Request

View

Controller

Response

ControllerHandles input(HTTP requests)

ViewVisually representsthe model

Page 12: Introduction To Asp.Net Mvc

ExtensibilityExtensibility

ControllerBuilder

ControllerFactory

Controller

ViewEngine

View

ControllerActionInvoker

ActionResult

ActionFilters

Model Binders

Any of this can be replaced!

Page 13: Introduction To Asp.Net Mvc

SummarySummary

• ASP.NET MVC is a new application option built on top of ASP.NET

• WebForms isn’t being deprecated

• ASP.NET MVC strives to provide strong, frictionless testability

• It places a lot of the control in your hands