1 / 16

MVC Introduction

MVC Introduction. Content table. What is MVC MVC vs ASP.NET MVC development environment Your first MVC application. Goals. You know what is MVC, What MVC can do and cant do You know how to setup MVC development environment You know how to create a MVC project by visual studio.

kyran
Download Presentation

MVC Introduction

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. MVC Introduction

  2. Content table • What is MVC • MVC vs ASP.NET • MVC development environment • Your first MVC application

  3. Goals • You know what is MVC, What MVC can do and cant do • You know how to setup MVC development environment • You know how to create a MVC project by visual studio

  4. A Brief History 2002/03 1996 ASP.NET 1.0/1.1 CGI IDC ASP 2005 2007 2008 2009 ASP.NET 2.0 ASP.NET AJAX ASP.NET 3.5 ASP.NET MVC 1.0 2010 2011 2012 ASP.NET MVC 2.0 ASP.NET MVC 3.0 ASP.NET MVC 4.0

  5. ASP.NET ‘s problem • View State weight • Page life cycle • False sense of separation of concerns • Limited control over HTML • Leaky abstraction • Low testability

  6. MVC Partern

  7. MVC Partern • Modelscontain or represent the data that users work with. • View models represent data being transferred between views and controllers; • Domain models contain the data in a business domain as well as the operations, transformations, and rules for manipulating that data. • Views are used to render some part of the model as a UI. • Controllersprocess incoming requests, perform operations on the model, and select views to render to the user.

  8. The ASP.NET Implementation of MVC

  9. Some Other Pattern • Smart UI • View-Model • Three-Tier

  10. Key Benefits of ASP.NET MVC • Extensibility • Tight Control over HTML and HTTP • Testability • Powerful Routing System • Built on the Best Parts of the ASP.NET Platform • Modern API • ASP.NET MVC Is Open Source

  11. MVC vs ASP.NET • Asp.net is Stateful UI, using View State and postbacks to create the effect of statefulness. • MVC embraces HTTP’s true stateless nature

  12. Migrate ASP.NET to MVC • two technologies can co-exist in the same application

  13. MVC vs Ruby Rail • Rails is a holistic development platform. • MVC Framework focuses on handling web requests in an MVC-pattern with controllers and actions

  14. MVC develop environment • Visual Studio 2010 ( Express, Pro, Pre, Ultimate ) • MVC 3 Update install • IIS Express • SQL Server ( 2005, 2008) • SQL management studio

  15. Option in Installing Visual Studio

More Related