SlideShare a Scribd company logo
Presented By:
Krishna Patel
Khushbu Bhakta
Bhumika Chauhan
Introduction to ASP.NET MVC
Agenda
2
 Introduction
 Choosing between webform & MVC
 How MVC Work?
 Creating Model
 Creating Controller
 Creating View
 Advantages
 Disadvantages
Introduction
 MVC is one of three ASP.NET
Programming Model.
 MVC stands for Model View Controller-
the names of the three major
components of this style of application
Development
 Model
 View
 Controller
3
Introduction
 Model refers to a data model,which is something
that you can use to perform create
,read,update,delete(CRUD) operation on your
application data.
 View is what is present to user.[Display Data]
 Controllers are code file that bridge between
views and models.It read data from view,control
user input and send input data to the model
4
Choosing between MVC & WebForm
 MVC is not replacing WebForms. Both these
development models exist and can be used to
develop ASP.NET applications.MVC Web Form
MVC is a lightweight and follow
MVC (Model, View, Controller)
pattern based development
model.
follows a traditional event driven
development model.
follow customizable syntax (Razor
as default)
follows Web Forms Syntax.
In MVC, Views and logic are kept
separately.
In Asp.Net Web Form, Web
Forms(ASPX) i.e. views are tightly
coupled to Code
behind(ASPX.CS) i.e. logic.
MVC has Layouts for consistent Web Form has Master Pages for5
How MVC Work???
Step 1
Incoming request directed to Controller
Request
6
How MVC Work???
Step 2
Controller processes request and forms a data Model
Model
7
How MVC Work???
Step 3
Model is passed to View
Controller
8
How MVC Work???
Step 4
View transforms Model into appropriate output format
Controller
9
How MVC Work???

Step 5
Response is rendered [deliver]
Response
Controller
View
10
Creating Model
 DataModel.emdx :-
This XML file defines the
schema for your data model
 DataModel.Designer.cs:-
This is C# code file
containing
the mapping object of your data model.
11
Creating Controller
 Controller process requests and determine which
view should be returned to the client.
Ex:
public ActionResult Index()
{
Db_MVC db=new Db_MVC();
return view(db.user);
}
12
Creating view
 Right click any where in code for the contoller
index
method ,and select add view option
13
Advantages of MVC
 SoC – Separation of Concerns
Separation of Concern is one of the core
advantages of ASP.NET MVC . The MVC
framework provides a clean separation of the UI
, Business Logic , Model or Data.
 More Control
The ASP.NET MVC framework provides more
control over the HTML , JavaScript and CSS
than the traditional Web Forms.
14
Advantages of MVC
 Testability
ASP.NET MVC framework provides better
testability of the Web Application and good
support for the test driven development too.
 Lightweight
ASP.NET MVC framework doesn’t use View
State and thus reduces the bandwidth of the
requests to an extent.
15
Advantages of MVC
 Full features of ASP.NET
One of the key advantages of using ASP.NET
MVC is that it is built on top of ASP.NET
framework and hence most of the features of the
ASP.NET like membership providers , roles etc
can still be used.
16
Disadvantages of MVC
17
 HTML & CSS skills must be revive
MVC requires the developer to understand how
the client-side code and HTML all play together
 MVC is still "relatively" new
18

More Related Content

What's hot (20)

PDF
MVC architecture
Emily Bauman
 
PPTX
Model view controller (mvc)
M Ahsan Khan
 
PPTX
Model View Controller(MVC)
Himanshu Chawla
 
PPTX
Model view controller (mvc)
icapetillos
 
PPT
Why MVC?
Wayne Tun Myint
 
PPTX
MVC Framework
Ashton Feller
 
ODP
Why Use MVC?
Jesse Anderson
 
PPT
MVC Pattern. Flex implementation of MVC
Anton Krasnoshchok
 
PDF
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
ODP
Mvc
abhigad
 
PPTX
Introduction to mvc architecture
ravindraquicsolv
 
PPTX
An overview of microsoft mvc dot net
neha sharma
 
PDF
Android Data Binding Support Library
ersin ertan
 
PPT
MVC ppt presentation
Bhavin Shah
 
PDF
Just a View: An Introduction To Model-View-Controller Pattern
Aaron Nordyke
 
PPTX
Jsp with mvc
vamsitricks
 
PPT
Ppt of Basic MVC Structure
Dipika Wadhvani
 
PDF
MVC - In Details
Mollah Nayeem Ahmed
 
PDF
MVC Seminar Presantation
Abhishek Yadav
 
MVC architecture
Emily Bauman
 
Model view controller (mvc)
M Ahsan Khan
 
Model View Controller(MVC)
Himanshu Chawla
 
Model view controller (mvc)
icapetillos
 
Why MVC?
Wayne Tun Myint
 
MVC Framework
Ashton Feller
 
Why Use MVC?
Jesse Anderson
 
MVC Pattern. Flex implementation of MVC
Anton Krasnoshchok
 
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
Mvc
abhigad
 
Introduction to mvc architecture
ravindraquicsolv
 
An overview of microsoft mvc dot net
neha sharma
 
Android Data Binding Support Library
ersin ertan
 
MVC ppt presentation
Bhavin Shah
 
Just a View: An Introduction To Model-View-Controller Pattern
Aaron Nordyke
 
Jsp with mvc
vamsitricks
 
Ppt of Basic MVC Structure
Dipika Wadhvani
 
MVC - In Details
Mollah Nayeem Ahmed
 
MVC Seminar Presantation
Abhishek Yadav
 

Similar to Intro ASP MVC (20)

PPTX
Asp.net c# MVC-5 Training-Day-1 of Day-9
AHM Pervej Kabir
 
PDF
Asp.net Mvc Introduction
Vishal Sharma
 
PPTX
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
PDF
MVC Interview Questions PDF By ScholarHat
Scholarhat
 
PDF
Avigma Tech LLC- Why the MVC pattern so popular?
Mike Brown
 
PPT
Asp.net mvc
Taranjeet Singh
 
PDF
Spring Framework-II
People Strategists
 
PDF
Top 40 MVC Interview Questions and Answers | Edureka
Edureka!
 
PPTX
Programming is Fun with ASP.NET MVC
Ian Carnaghan
 
PPTX
Introduction to ASP.NET Core MVC and the MVC Pattern.pptx
QuickwayInfoSystems3
 
PPTX
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
QuickwayInfoSystems3
 
PPTX
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
QuickwayInfoSystems3
 
PPTX
ASP.NET MVC Fundamental
ldcphuc
 
PDF
Principles of MVC for PHP Developers
Edureka!
 
PPTX
MVC 4
Vasilios Kuznos
 
PDF
MVC
Ravi Bansal
 
PPTX
5_6163495906206292160 for study purpose.pptx
abhinavas7012
 
PPTX
Asp.net mvc 5 course module 1 overview
Sergey Seletsky
 
PPTX
Mvc part 1
Gandhi Ghanashyam
 
PPTX
Web tier-framework-mvc
KashfUlHuda1
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
AHM Pervej Kabir
 
Asp.net Mvc Introduction
Vishal Sharma
 
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
MVC Interview Questions PDF By ScholarHat
Scholarhat
 
Avigma Tech LLC- Why the MVC pattern so popular?
Mike Brown
 
Asp.net mvc
Taranjeet Singh
 
Spring Framework-II
People Strategists
 
Top 40 MVC Interview Questions and Answers | Edureka
Edureka!
 
Programming is Fun with ASP.NET MVC
Ian Carnaghan
 
Introduction to ASP.NET Core MVC and the MVC Pattern.pptx
QuickwayInfoSystems3
 
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
QuickwayInfoSystems3
 
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
QuickwayInfoSystems3
 
ASP.NET MVC Fundamental
ldcphuc
 
Principles of MVC for PHP Developers
Edureka!
 
5_6163495906206292160 for study purpose.pptx
abhinavas7012
 
Asp.net mvc 5 course module 1 overview
Sergey Seletsky
 
Mvc part 1
Gandhi Ghanashyam
 
Web tier-framework-mvc
KashfUlHuda1
 
Ad

Recently uploaded (20)

PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
infertility, types,causes, impact, and management
Ritu480198
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
Introduction to Indian Writing in English
Trushali Dodiya
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Introduction presentation of the patentbutler tool
MIPLM
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
Ad

Intro ASP MVC

  • 1. Presented By: Krishna Patel Khushbu Bhakta Bhumika Chauhan Introduction to ASP.NET MVC
  • 2. Agenda 2  Introduction  Choosing between webform & MVC  How MVC Work?  Creating Model  Creating Controller  Creating View  Advantages  Disadvantages
  • 3. Introduction  MVC is one of three ASP.NET Programming Model.  MVC stands for Model View Controller- the names of the three major components of this style of application Development  Model  View  Controller 3
  • 4. Introduction  Model refers to a data model,which is something that you can use to perform create ,read,update,delete(CRUD) operation on your application data.  View is what is present to user.[Display Data]  Controllers are code file that bridge between views and models.It read data from view,control user input and send input data to the model 4
  • 5. Choosing between MVC & WebForm  MVC is not replacing WebForms. Both these development models exist and can be used to develop ASP.NET applications.MVC Web Form MVC is a lightweight and follow MVC (Model, View, Controller) pattern based development model. follows a traditional event driven development model. follow customizable syntax (Razor as default) follows Web Forms Syntax. In MVC, Views and logic are kept separately. In Asp.Net Web Form, Web Forms(ASPX) i.e. views are tightly coupled to Code behind(ASPX.CS) i.e. logic. MVC has Layouts for consistent Web Form has Master Pages for5
  • 6. How MVC Work??? Step 1 Incoming request directed to Controller Request 6
  • 7. How MVC Work??? Step 2 Controller processes request and forms a data Model Model 7
  • 8. How MVC Work??? Step 3 Model is passed to View Controller 8
  • 9. How MVC Work??? Step 4 View transforms Model into appropriate output format Controller 9
  • 10. How MVC Work???  Step 5 Response is rendered [deliver] Response Controller View 10
  • 11. Creating Model  DataModel.emdx :- This XML file defines the schema for your data model  DataModel.Designer.cs:- This is C# code file containing the mapping object of your data model. 11
  • 12. Creating Controller  Controller process requests and determine which view should be returned to the client. Ex: public ActionResult Index() { Db_MVC db=new Db_MVC(); return view(db.user); } 12
  • 13. Creating view  Right click any where in code for the contoller index method ,and select add view option 13
  • 14. Advantages of MVC  SoC – Separation of Concerns Separation of Concern is one of the core advantages of ASP.NET MVC . The MVC framework provides a clean separation of the UI , Business Logic , Model or Data.  More Control The ASP.NET MVC framework provides more control over the HTML , JavaScript and CSS than the traditional Web Forms. 14
  • 15. Advantages of MVC  Testability ASP.NET MVC framework provides better testability of the Web Application and good support for the test driven development too.  Lightweight ASP.NET MVC framework doesn’t use View State and thus reduces the bandwidth of the requests to an extent. 15
  • 16. Advantages of MVC  Full features of ASP.NET One of the key advantages of using ASP.NET MVC is that it is built on top of ASP.NET framework and hence most of the features of the ASP.NET like membership providers , roles etc can still be used. 16
  • 17. Disadvantages of MVC 17  HTML & CSS skills must be revive MVC requires the developer to understand how the client-side code and HTML all play together  MVC is still "relatively" new
  • 18. 18