2
Most read
4
Most read
MVC TRAINING DAY-1
1
QuicSolvTechnologiesPvt.Ltd.
INTRODUCTION TO MVC ASP.NET
ARCHITECTURE
 ASP.NET MVC is a part of ASP.NET and not an
entirely separate Framework.
 The Model-View-Controller (MVC) pattern is an
architectural design principle that separates the
components of a Web application. This separation
gives you more control over the individual parts of
the application, which lets you more easily develop,
modify, and test them.
 ASP.NET MVC is part of the ASP.NET framework.
Developing an ASP.NET MVC application is an
alternative to developing ASP.NET Web Forms
pages; it does not replace the Web Forms model.
2
QuicSolvTechnologiesPvt.Ltd.
INTRODUCTION TO MVC ASP.NET
ARCHITECTURE
3
QuicSolvTechnologiesPvt.Ltd.
MODEL-VIEW-CONTROLLER
 Controller: - The controller is like a traffic cop.
Whenever user requests any resource it first goes
to the controller. Controller than interact with both
the Model and View.
 Model: - The model is responsible for the data for
the application and also it creates data for the view.
It handles data processing and database works
part.
 View: - It is a presentation layer i.e. it shows the
data to the users.
4
QuicSolvTechnologiesPvt.Ltd.
BASIC CONVENTIONS IN ASP.NET MVC
ď‚— There is single controller directory which holds your
controller classes.
 Each controller’s name ends with “Controller” e.g. :
HomeController
ď‚— Views that controller use live in subdirectory of the
Views main directory. Directory for above
HomeController will be “Views/Home”
ď‚— All reusable UI elements live in similar structure
above but in a “Shared” directory on Root.
5
QuicSolvTechnologiesPvt.Ltd.
BASIC CONVENTIONS IN ASP.NET MVC
 Controller contains all
Controller classes.
 Models contains all
Models classes.
 Views contains
associated views.
 Content contains all
CSS / Images / other
libraries
 Script contains default
scripts loaded MVC
6
QuicSolvTechnologiesPvt.Ltd.
7
QuicSolvTechnologiesPvt.Ltd.
ASP.NET WEB FORMS
VS
ASP.NET MVC
 ASP.NET WeB Form
ď‚— Does well with
Abstraction
ď‚— Not fully Testable
ď‚— Not much HTML
Expertise required
ď‚— Less maintainable
ď‚— Supported by heaps of
third party Server side
controls and tools.
 ASP.NET MVC
ď‚— Works with SoC
principle
ď‚— Best for TDD
ď‚— HTML knowledge is
required
ď‚— Highly maintainable
ď‚— Supported by various
Third party JavaScript
controls
ASP.NET MVC – VIEW ENGINE
8
QuicSolvTechnologiesPvt.Ltd.
 Types of View Engine
ď‚— System.Web.Mvc.WebFormViewEngine
ď‚— System.Web.Razor
ď‚— Bellevue
ď‚— Brail
ď‚— NDjango using the F#
 Many More….
WHY VIEW ENGINES
 Syntax
 Skill set/background
 Productivity
 Testability
 View engines that don’t depend on the System.Web.UI.Page
are easier to test than the default ASP.NET MVC view engine,
which uses Page for a base class of its view implementation.
 Division of labor
ď‚— If you have designers working on the views, or just want
minimal logic in your views, you should choose a view engine
that easily mixes with Html.
 Step 1
ASP.NET MVC REQUEST FLOW
Incoming request directed to
Controller
Request
Controller
 Step 2
ASP.NET MVC REQUEST FLOW
Controller processes request and forms
a data Model
Request
Controller
Model
ASP.NET MVC REQUEST FLOW
 Step 3
12
QuicSolvTechnologiesPvt.Ltd.
Model is passed to View
Request
Controller
Model
View
ASP.NET MVC REQUEST FLOW
 Step 4
13
QuicSolvTechnologiesPvt.Ltd.
View transforms Model into
appropriate output format
Request
Controller
View
Response
ASP.NET MVC REQUEST LIFE CYCLE
14
QuicSolvTechnologiesPvt.Ltd.
WHY MVC?
 It makes it easier to manage complexity by dividing an
application into the model, the view, and the controller.
 It does not use view state or server-based forms. This makes
the MVC framework ideal for developers who want full control
over the behavior of an application.
 It uses a Front Controller pattern that processes Web
application requests through a single controller. This enables
you to design an application that supports a rich routing
infrastructure. For more information, see Front Controller.
 It provides better support for test-driven development (TDD).
 It works well for Web applications that are supported by large
teams of developers and for Web designers who need a high
degree of control over the application behavior.
15
QuicSolvTechnologiesPvt.Ltd.
 ANY QUESTIONS???????????
16
QuicSolvTechnologiesPvt.Ltd.
 THANK YOU
17
QuicSolvTechnologiesPvt.Ltd.

More Related Content

PPT
ASP.NET MVC Presentation
 
PPT
MVC ppt presentation
PPTX
Model view controller (mvc)
PPTX
MVC Framework
PDF
MVC Architecture
PPTX
ASP.NET MVC.
 
PDF
Model View Controller (MVC)
PPT
ASP .net MVC
ASP.NET MVC Presentation
 
MVC ppt presentation
Model view controller (mvc)
MVC Framework
MVC Architecture
ASP.NET MVC.
 
Model View Controller (MVC)
ASP .net MVC

What's hot (20)

PDF
MVC architecture
PDF
Asp.net mvc basic introduction
PPTX
Introduction to ASP.NET
PPTX
Mvc pattern and implementation in java fair
PPTX
MVVM - Model View ViewModel
PPTX
ASP.NET MVC Presentation
PPTX
Asp.net MVC training session
PPTX
Asp.Net Core MVC with Entity Framework
PDF
Building blocks of Angular
PPTX
Training: MVVM Pattern
PPTX
Introduction to ASP.NET MVC
PPTX
CQRS: Command/Query Responsibility Segregation
PPTX
LINQ in C#
PPT
Mvc architecture
PPT
Ppt of Basic MVC Structure
PPTX
Ajax and Jquery
PPTX
ASP.NET Page Life Cycle
PPT
Introduction to c#
PPT
Asp.net.
PPT
Introduction To Dotnet
MVC architecture
Asp.net mvc basic introduction
Introduction to ASP.NET
Mvc pattern and implementation in java fair
MVVM - Model View ViewModel
ASP.NET MVC Presentation
Asp.net MVC training session
Asp.Net Core MVC with Entity Framework
Building blocks of Angular
Training: MVVM Pattern
Introduction to ASP.NET MVC
CQRS: Command/Query Responsibility Segregation
LINQ in C#
Mvc architecture
Ppt of Basic MVC Structure
Ajax and Jquery
ASP.NET Page Life Cycle
Introduction to c#
Asp.net.
Introduction To Dotnet
Ad

Similar to Introduction to mvc architecture (20)

PPTX
Asp.net c# MVC-5 Training-Day-1 of Day-9
PPTX
Fast Track introduction to ASP.NET MVC
PPT
Asp.net mvc
PDF
Asp 1-mvc introduction
PPTX
Getting started with MVC 5 and Visual Studio 2013
PPTX
ASP.net MVC Introduction Wikilogia (nov 2014)
PPT
MVC From Beginner to Advance in Indian Style by - Indiandotnet
PPTX
Simple mvc4 prepared by gigin krishnan
PDF
Introduction to ASP.NET MVC
PPTX
Intro ASP MVC
PPTX
ASP .NET MVC Introduction & Guidelines
PPT
Asp.net,mvc
PDF
Asp 1a-aspnetmvc
PDF
Aspnetmvc 1
PPTX
ASP.NET MVC Fundamental
PPS
Introduction To Mvc
PDF
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
PDF
Targeting Mobile Platform with MVC 4.0
PDF
Introduction to ASP.NET MVC
PPTX
Asp.netmvc handson
Asp.net c# MVC-5 Training-Day-1 of Day-9
Fast Track introduction to ASP.NET MVC
Asp.net mvc
Asp 1-mvc introduction
Getting started with MVC 5 and Visual Studio 2013
ASP.net MVC Introduction Wikilogia (nov 2014)
MVC From Beginner to Advance in Indian Style by - Indiandotnet
Simple mvc4 prepared by gigin krishnan
Introduction to ASP.NET MVC
Intro ASP MVC
ASP .NET MVC Introduction & Guidelines
Asp.net,mvc
Asp 1a-aspnetmvc
Aspnetmvc 1
ASP.NET MVC Fundamental
Introduction To Mvc
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
Targeting Mobile Platform with MVC 4.0
Introduction to ASP.NET MVC
Asp.netmvc handson
Ad

Recently uploaded (20)

PDF
Technical SEO Explained: How To Make Your Website Search-Friendly
PPTX
LiFi Technology an effective way of Communication
PDF
How Technology Shapes Our Information Age
PPTX
BIOS-and-VDU-The-Foundations-of-Computer-Startup-and-Display (1).pptx
PPTX
IoT Lecture IoT Lecture IoT Lecture IoT Lecture
PDF
Tailieuhoctiengnhat.com__(N5) 1021 từ vựng tổng hợp.pdf
DOCX
MLS 113 Medical Parasitology (LECTURE).docx
PDF
ilide.info-huawei-odn-solution-introduction-pdf-pr_a17152ead66ea2617ffbd01e8c...
PPTX
Going_to_Greece presentation Greek mythology
PDF
B450721.pdf American Journal of Multidisciplinary Research and Review
PPTX
Unguided-Transmission-Media-Wireless-Communication-Explained.pptx
PDF
B2B Marketing mba class material for study
PPTX
National-Historical-Commission-of-the-PhilippinesNHCP.pptx
PPTX
Basic_of_Computer_System.pptx class-8 com
PPTX
Introduction: Living in the IT ERA.pptx
PPTX
IOT LECTURE IOT LECTURE IOT LECTURE IOT LECTURE
DOCX
Audio to Video AI Technology Revolutiona
PPTX
WEEK 15.pptx WEEK 15.pptx WEEK 15.pptx WEEK 15.pptx
PPTX
PORTFOLIO SAMPLE…….………………………………. …pptx
PDF
AGENT SLOT TERPERCAYA INDONESIA – MAIN MUDAH, WD CEPAT, HANYA DI KANCA4D
Technical SEO Explained: How To Make Your Website Search-Friendly
LiFi Technology an effective way of Communication
How Technology Shapes Our Information Age
BIOS-and-VDU-The-Foundations-of-Computer-Startup-and-Display (1).pptx
IoT Lecture IoT Lecture IoT Lecture IoT Lecture
Tailieuhoctiengnhat.com__(N5) 1021 từ vựng tổng hợp.pdf
MLS 113 Medical Parasitology (LECTURE).docx
ilide.info-huawei-odn-solution-introduction-pdf-pr_a17152ead66ea2617ffbd01e8c...
Going_to_Greece presentation Greek mythology
B450721.pdf American Journal of Multidisciplinary Research and Review
Unguided-Transmission-Media-Wireless-Communication-Explained.pptx
B2B Marketing mba class material for study
National-Historical-Commission-of-the-PhilippinesNHCP.pptx
Basic_of_Computer_System.pptx class-8 com
Introduction: Living in the IT ERA.pptx
IOT LECTURE IOT LECTURE IOT LECTURE IOT LECTURE
Audio to Video AI Technology Revolutiona
WEEK 15.pptx WEEK 15.pptx WEEK 15.pptx WEEK 15.pptx
PORTFOLIO SAMPLE…….………………………………. …pptx
AGENT SLOT TERPERCAYA INDONESIA – MAIN MUDAH, WD CEPAT, HANYA DI KANCA4D

Introduction to mvc architecture

  • 2. INTRODUCTION TO MVC ASP.NET ARCHITECTURE  ASP.NET MVC is a part of ASP.NET and not an entirely separate Framework.  The Model-View-Controller (MVC) pattern is an architectural design principle that separates the components of a Web application. This separation gives you more control over the individual parts of the application, which lets you more easily develop, modify, and test them.  ASP.NET MVC is part of the ASP.NET framework. Developing an ASP.NET MVC application is an alternative to developing ASP.NET Web Forms pages; it does not replace the Web Forms model. 2 QuicSolvTechnologiesPvt.Ltd.
  • 3. INTRODUCTION TO MVC ASP.NET ARCHITECTURE 3 QuicSolvTechnologiesPvt.Ltd.
  • 4. MODEL-VIEW-CONTROLLER  Controller: - The controller is like a traffic cop. Whenever user requests any resource it first goes to the controller. Controller than interact with both the Model and View.  Model: - The model is responsible for the data for the application and also it creates data for the view. It handles data processing and database works part.  View: - It is a presentation layer i.e. it shows the data to the users. 4 QuicSolvTechnologiesPvt.Ltd.
  • 5. BASIC CONVENTIONS IN ASP.NET MVC ď‚— There is single controller directory which holds your controller classes. ď‚— Each controller’s name ends with “Controller” e.g. : HomeController ď‚— Views that controller use live in subdirectory of the Views main directory. Directory for above HomeController will be “Views/Home” ď‚— All reusable UI elements live in similar structure above but in a “Shared” directory on Root. 5 QuicSolvTechnologiesPvt.Ltd.
  • 6. BASIC CONVENTIONS IN ASP.NET MVC  Controller contains all Controller classes.  Models contains all Models classes.  Views contains associated views.  Content contains all CSS / Images / other libraries  Script contains default scripts loaded MVC 6 QuicSolvTechnologiesPvt.Ltd.
  • 7. 7 QuicSolvTechnologiesPvt.Ltd. ASP.NET WEB FORMS VS ASP.NET MVC  ASP.NET WeB Form ď‚— Does well with Abstraction ď‚— Not fully Testable ď‚— Not much HTML Expertise required ď‚— Less maintainable ď‚— Supported by heaps of third party Server side controls and tools.  ASP.NET MVC ď‚— Works with SoC principle ď‚— Best for TDD ď‚— HTML knowledge is required ď‚— Highly maintainable ď‚— Supported by various Third party JavaScript controls
  • 8. ASP.NET MVC – VIEW ENGINE 8 QuicSolvTechnologiesPvt.Ltd.  Types of View Engine ď‚— System.Web.Mvc.WebFormViewEngine ď‚— System.Web.Razor ď‚— Bellevue ď‚— Brail ď‚— NDjango using the F# ď‚— Many More….
  • 9. WHY VIEW ENGINES  Syntax  Skill set/background  Productivity  Testability ď‚— View engines that don’t depend on the System.Web.UI.Page are easier to test than the default ASP.NET MVC view engine, which uses Page for a base class of its view implementation.  Division of labor ď‚— If you have designers working on the views, or just want minimal logic in your views, you should choose a view engine that easily mixes with Html.
  • 10.  Step 1 ASP.NET MVC REQUEST FLOW Incoming request directed to Controller Request Controller
  • 11.  Step 2 ASP.NET MVC REQUEST FLOW Controller processes request and forms a data Model Request Controller Model
  • 12. ASP.NET MVC REQUEST FLOW  Step 3 12 QuicSolvTechnologiesPvt.Ltd. Model is passed to View Request Controller Model View
  • 13. ASP.NET MVC REQUEST FLOW  Step 4 13 QuicSolvTechnologiesPvt.Ltd. View transforms Model into appropriate output format Request Controller View Response
  • 14. ASP.NET MVC REQUEST LIFE CYCLE 14 QuicSolvTechnologiesPvt.Ltd.
  • 15. WHY MVC?  It makes it easier to manage complexity by dividing an application into the model, the view, and the controller.  It does not use view state or server-based forms. This makes the MVC framework ideal for developers who want full control over the behavior of an application.  It uses a Front Controller pattern that processes Web application requests through a single controller. This enables you to design an application that supports a rich routing infrastructure. For more information, see Front Controller.  It provides better support for test-driven development (TDD).  It works well for Web applications that are supported by large teams of developers and for Web designers who need a high degree of control over the application behavior. 15 QuicSolvTechnologiesPvt.Ltd.