SlideShare a Scribd company logo
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

PPTX
MVC Framework
Ashton Feller
 
PPT
MVC ppt presentation
Bhavin Shah
 
PPTX
Model view controller (mvc)
M Ahsan Khan
 
PPT
ASP .net MVC
Divya Sharma
 
PPTX
Asp.net MVC training session
Hrichi Mohamed
 
PPT
Mvc architecture
Surbhi Panhalkar
 
PPTX
ASP.NET MVC Presentation
Volkan Uzun
 
PPT
ASP.NET MVC Presentation
ivpol
 
MVC Framework
Ashton Feller
 
MVC ppt presentation
Bhavin Shah
 
Model view controller (mvc)
M Ahsan Khan
 
ASP .net MVC
Divya Sharma
 
Asp.net MVC training session
Hrichi Mohamed
 
Mvc architecture
Surbhi Panhalkar
 
ASP.NET MVC Presentation
Volkan Uzun
 
ASP.NET MVC Presentation
ivpol
 

What's hot (20)

PDF
MVC architecture
Emily Bauman
 
PDF
Vue.js
Jadson Santos
 
PDF
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
PPTX
ASP.NET MVC.
Ni
 
PPTX
Angular introduction students
Christian John Felix
 
PPTX
Introduction to laravel framework
Ahmad Fatoni
 
PDF
Laravel presentation
Toufiq Mahmud
 
PPTX
Angular 9
Raja Vishnu
 
PPTX
MVVM ( Model View ViewModel )
Ahmed Emad
 
PPTX
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
PPT
Angular App Presentation
Elizabeth Long
 
PPT
Vue.js Getting Started
Murat Doğan
 
PPTX
React js for beginners
Alessandro Valenti
 
PPTX
Design Pattern - MVC, MVP and MVVM
Mudasir Qazi
 
PPTX
Training: MVVM Pattern
Betclic Everest Group Tech Team
 
PPT
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
ODP
An Introduction to Vuejs
Paddy Lock
 
PPTX
React workshop
Imran Sayed
 
PPT
Spring Boot in Action
Alex Movila
 
MVC architecture
Emily Bauman
 
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
ASP.NET MVC.
Ni
 
Angular introduction students
Christian John Felix
 
Introduction to laravel framework
Ahmad Fatoni
 
Laravel presentation
Toufiq Mahmud
 
Angular 9
Raja Vishnu
 
MVVM ( Model View ViewModel )
Ahmed Emad
 
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
Angular App Presentation
Elizabeth Long
 
Vue.js Getting Started
Murat Doğan
 
React js for beginners
Alessandro Valenti
 
Design Pattern - MVC, MVP and MVVM
Mudasir Qazi
 
Training: MVVM Pattern
Betclic Everest Group Tech Team
 
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
An Introduction to Vuejs
Paddy Lock
 
React workshop
Imran Sayed
 
Spring Boot in Action
Alex Movila
 
Ad

Similar to Introduction to mvc architecture (20)

PPTX
Asp.net c# MVC-5 Training-Day-1 of Day-9
AHM Pervej Kabir
 
PPTX
Fast Track introduction to ASP.NET MVC
Ankit Kashyap
 
PPT
Asp.net mvc
Taranjeet Singh
 
PDF
Asp 1-mvc introduction
Fajar Baskoro
 
PPTX
Getting started with MVC 5 and Visual Studio 2013
Thomas Robbins
 
PPTX
ASP.net MVC Introduction Wikilogia (nov 2014)
Hatem Hamad
 
PPT
MVC From Beginner to Advance in Indian Style by - Indiandotnet
Indiandotnet
 
PPTX
Simple mvc4 prepared by gigin krishnan
Gigin Krishnan
 
PDF
Introduction to ASP.NET MVC
Sirwan Afifi
 
PPTX
Intro ASP MVC
KrishnaPPatel
 
PPTX
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
 
PPT
Asp.net,mvc
Prashant Kumar
 
PDF
Aspnetmvc 1
Fajar Baskoro
 
PDF
Asp 1a-aspnetmvc
Fajar Baskoro
 
PPTX
ASP.NET MVC Fundamental
ldcphuc
 
PPS
Introduction To Mvc
Volkan Uzun
 
PDF
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
Alicia Buske
 
PDF
Targeting Mobile Platform with MVC 4.0
Mayank Srivastava
 
PDF
Introduction to ASP.NET MVC
Mayank Srivastava
 
PPTX
Asp.netmvc handson
Prashant Kumar
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
AHM Pervej Kabir
 
Fast Track introduction to ASP.NET MVC
Ankit Kashyap
 
Asp.net mvc
Taranjeet Singh
 
Asp 1-mvc introduction
Fajar Baskoro
 
Getting started with MVC 5 and Visual Studio 2013
Thomas Robbins
 
ASP.net MVC Introduction Wikilogia (nov 2014)
Hatem Hamad
 
MVC From Beginner to Advance in Indian Style by - Indiandotnet
Indiandotnet
 
Simple mvc4 prepared by gigin krishnan
Gigin Krishnan
 
Introduction to ASP.NET MVC
Sirwan Afifi
 
Intro ASP MVC
KrishnaPPatel
 
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
 
Asp.net,mvc
Prashant Kumar
 
Aspnetmvc 1
Fajar Baskoro
 
Asp 1a-aspnetmvc
Fajar Baskoro
 
ASP.NET MVC Fundamental
ldcphuc
 
Introduction To Mvc
Volkan Uzun
 
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
Alicia Buske
 
Targeting Mobile Platform with MVC 4.0
Mayank Srivastava
 
Introduction to ASP.NET MVC
Mayank Srivastava
 
Asp.netmvc handson
Prashant Kumar
 
Ad

Recently uploaded (20)

PDF
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
PDF
Elements Of Poetry PowerPoint With Sources
PrincessKate16
 
PPTX
ENCOR_Chapter_11 - ‌BGP implementation.pptx
nshg93
 
PPTX
Generics jehfkhkshfhskjghkshhhhlshluhueheuhuhhlhkhk.pptx
yashpavasiya892
 
PDF
Triggering QUIC, presented by Geoff Huston at IETF 123
APNIC
 
PPTX
CSharp_Syntax_Basics.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxx
nhdqw45qfd
 
PDF
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
LABUAN 4D
 
PPTX
Parallel & Concurrent ...
yashpavasiya892
 
PPTX
Microsoft PowerPoint Student PPT slides.pptx
Garleys Putin
 
PPTX
durere- in cancer tu ttresjjnklj gfrrjnrs mhugyfrd
Serban Elena
 
PPTX
EthicalHack{aksdladlsfsamnookfmnakoasjd}.pptx
dagarabull
 
PDF
Slides PDF The Workd Game (s) Eco Economic Epochs.pdf
Steven McGee
 
PDF
BGP Security Best Practices that Matter, presented at PHNOG 2025
APNIC
 
PDF
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
PDF
LOGENVIDAD DANNYFGRETRRTTRRRTRRRRRRRRR.pdf
juan456ytpro
 
PDF
Generative AI Foundations: AI Skills for the Future of Work
hemal sharma
 
PPTX
ppt lighfrsefsefesfesfsefsefsefsefserrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrt.pptx
atharvawafgaonkar
 
PPTX
PPT_M4.3_WORKING WITH SLIDES APPLIED.pptx
MCEAMONVILLAVER
 
PPTX
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
PPT
Transformaciones de las funciones elementales.ppt
rirosel211
 
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
Elements Of Poetry PowerPoint With Sources
PrincessKate16
 
ENCOR_Chapter_11 - ‌BGP implementation.pptx
nshg93
 
Generics jehfkhkshfhskjghkshhhhlshluhueheuhuhhlhkhk.pptx
yashpavasiya892
 
Triggering QUIC, presented by Geoff Huston at IETF 123
APNIC
 
CSharp_Syntax_Basics.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxx
nhdqw45qfd
 
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
LABUAN 4D
 
Parallel & Concurrent ...
yashpavasiya892
 
Microsoft PowerPoint Student PPT slides.pptx
Garleys Putin
 
durere- in cancer tu ttresjjnklj gfrrjnrs mhugyfrd
Serban Elena
 
EthicalHack{aksdladlsfsamnookfmnakoasjd}.pptx
dagarabull
 
Slides PDF The Workd Game (s) Eco Economic Epochs.pdf
Steven McGee
 
BGP Security Best Practices that Matter, presented at PHNOG 2025
APNIC
 
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
LOGENVIDAD DANNYFGRETRRTTRRRTRRRRRRRRR.pdf
juan456ytpro
 
Generative AI Foundations: AI Skills for the Future of Work
hemal sharma
 
ppt lighfrsefsefesfesfsefsefsefsefserrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrt.pptx
atharvawafgaonkar
 
PPT_M4.3_WORKING WITH SLIDES APPLIED.pptx
MCEAMONVILLAVER
 
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
Transformaciones de las funciones elementales.ppt
rirosel211
 

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.