Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to ASP.NET MVC [Name] [Email Address] [Blog URL]

Similar presentations


Presentation on theme: "Introduction to ASP.NET MVC [Name] [Email Address] [Blog URL]"— Presentation transcript:

1 Introduction to ASP.NET MVC [Name] [Email Address] [Blog URL]

2 Session 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? Takeaways

3 ASP.NET Then… CachingCachingModulesModules HandlersHandlers IntrinsicsIntrinsics PagesPagesControlsControls GlobalizationGlobalization ProfileProfile Master Pages MembershipMembership RolesRoles Etc.Etc. ASP.NET One web application framework to rule them all…

4 ASP.NET Now… ASP.NET Dynamic Data ASP.NET Dynamic Data ASP.NET WebForms ASP.NET WebForms ASP.NET MVC ASP.NET MVC Presentation Runtime ASP.NET Core ASP.NET Core

5 WebForms is great, but options are good…

6 Master Page Control No real role responsibility… UI Presentation Logic Business Logic Data Access Who does what? How and when? Control Page Control

7 Control abstractions can be negative…

8 It isn't easy enough to test… Logic UI

9 So how does ASP.NET MVC differ?

10 MVC = Model-View-Controller Controller(Input)Controller(Input) Model(Logic)Model(Logic)View(Presentation)View(Presentation) Separation of concerns!

11 How does MVC look? Request View Controller Response Controller Handles input (HTTP requests) View Visually represents the model

12 File | New

13 What are the tenets of ASP.NET MVC?

14 Framework Goals Frictionless Testability Tight control over Leverage the benefits of ASP.NET Conventions and guidance …

15 Clean URLs Don’t settle for… /Products.aspx?CategoryID=123 When you can easily have… /Product/Puppies Or whatever else makes sense…

16 Extensibility Controller Builder Controller Builder Controller Factory Controller Factory Controller View Engine View Engine View Controller Action Invoker Controller Action Invoker Action Result Action Result Action Filters Action Filters Model Binders Model Binders Any of this can be replaced!

17 MVC Development

18 How about unit testing?

19 Unit Testing

20 Summary 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

21


Download ppt "Introduction to ASP.NET MVC [Name] [Email Address] [Blog URL]"

Similar presentations


Ads by Google