1 / 21

Introduction to ASP.NET MVC

Introduction to ASP.NET MVC. [Name] [Email Address] [Blog URL]. 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.

carlsonr
Download Presentation

Introduction to ASP.NET MVC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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… ASP.NET Caching Modules Globalization Pages Controls Master Pages Profile Roles Membership Intrinsics Handlers Etc. One web application framework to rule them all…

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

  5. WebForms is great, but options are good…

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

  7. Control abstractions can be negative…

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

  9. So how does ASP.NET MVCdiffer?

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

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

  12. File | New

  13. What are the tenets of ASP.NET MVC?

  14. Framework Goals • Frictionless Testability • Tight control over <markup> • 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 Action Filters Model Binders Controller Builder Controller Factory Controller Controller Action Invoker View View Engine Action Result 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

More Related