SlideServe
Menu
Préférences
© SlideServe · v2026

MVC Introduction

kyran avatar
16 diapositives · 338 Views · Jul 10, 2014

This comprehensive guide introduces the Model-View-Controller (MVC) architecture, contrasting it with ASP.NET frameworks. Discover the MVC development environment and learn how to create your first MVC application using Visual Studio. Explore the key concepts, advantages, and limitations of MVC, including its history and evolution from ASP.NET to a powerful, testable architecture. Gain insights into models, views, controllers, and how they interact, while also comparing MVC with Ruby on Rails. Ideal for developers seeking to enhance their web development skills.

MVC Introduction - slide 1
01 / 16MVC Introduction
1 / 17

Télécharger la présentation

MVC Introduction
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  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