SlideShare a Scribd company logo
Gaurav Kumar Arora 
Twitter - #g_arora 
Gaurav is an enthusiast Technologist. He is an author of 
http://c-sharpcorner.com , having more than 13yrs experience in the industry
ASP.NET MVC – SERIES FOR 
BEGINERS: PART-1
ATTENTION 
This is a first session of our Beginners series. We will discuss very basic 
topics in this session. 
I would like to make this session more interactive, do participate 
and make this session more presentable. 
Compile your views, which you want to add and send me I will 
publish all with your name.
AGENDA 
 Introduction to MVC 
 Why MVC? 
 Reason to choose MVC against asp.net web forms 
 Overview of Model View Controller 
 Overview working of MVC 
 Overview of routes collection 
 Revisiting session 
 Question / Answer / Suggestion
INTRODUCTION TO MVC 
A background to Asp.Net MVC: 
 Is based on Asp.Net 
 A framework for RAD (rapid application development), used to 
develop Web application 
 Is a composition of Model, View Controller 
 Is an open source and code is available at CodePlex [In 2009 – 
released under Microsoft Public License and in 2012 – released 
under Apache License 2.0]
WHY MVC? 
Take a moment and think about a valuable Software Pattern 
Model-view-controller. We can also predicts from the image that 
MVC pattern divides a software application into a three 
interconnected parts/components. Basically, it’s a concept of 
separation (here just separation of internal representation of 
information from ways/logics/techniques how it is being 
represented to the end-user)
WHY MVC? 
Controller can send commands/directions to the model to update 
its state as well as commands over to view. 
Associated views and controller get notified by Model as per 
changes of its state. 
Model provides specific result as a output upon the request of View 
to represent.
WHY MVC? 
Lets understand this from associated image 
In simple words, we can say that MVC is 
providing a facility to make our layers 
separate which are separated and 
interacting with each-other.
ASP.NET MVC OVER ASP.NET WEBFORMS 
There are numerous reasons to choose Asp.Net for web 
development over Asp.Net WebForms: 
 Asp.Net MVC is a web framework and is based on MVC pattern 
 No viewstate (performance is better in asp.net mvc) 
 Completely testable 
 Integration with client side (easily handshake with client side 
scripting like Jquery etc.) 
 Flexibility (provides various views engines, which renders HTML – 
Razor View Engine is most famous)
OVERVIEW OF MODEL VIEW CONTROLLER 
Devs we have already covered this in previous slides, lets discuss it 
again.
OVERVIEW OF MODEL VIEW CONTROLLER 
Conclusion - what we discussed (for asp.net mvc framework) 
What is a Model? 
 MVC model is typically a class (of C# or VB.NET). 
 Both controller and view can access model. 
 A model can be used to pass data from Controller to view 
 Main purpose of a view is to display data in page with the use of 
model.
OVERVIEW OF MODEL VIEW CONTROLLER 
Conclusion - what we discussed (for asp.net mvc framework) 
What is a View? 
 View is nothing but a page you can say a web page and it is not 
having any code-behind 
 All page specific HTML generation and formatting can be done 
inside view 
 A request to view can be made only from a controller’s action 
method
OVERVIEW OF MODEL VIEW CONTROLLER 
Conclusion - what we discussed (for asp.net mvc framework) 
What is a Controller? 
 Controller is typically a class (of C# or VB.Net) and inherits 
"system.mvc.controller" 
 Within this class methods can be implemented and called as action 
methods. These are responsible for responding to browser and/or 
calling views. 
 Controller class can access and use model class to pass data to 
views
OVERVIEW WORKING OF MVC 
In this session we are not going to cover only basic things: 
High level overview says – browser sends request to Asp.Net MVC 
and it returns response back to browser [request is HTTP Request 
and response is HTTP response]. 
Lets discuss shown image:
OVERVIEW WORKING OF MVC 
In broader way – First request 
comes to Route Tables then 
passes to specific controller before 
interaction with Model Binding it 
goes through Authentication & 
Authorization and afterwards Fires 
a specific Action Method and 
execute the results to View. 
Lets take an example to discuss 
more.
OVERVIEW OF ROUTES COLLECTION 
In simple words, routes collection (also can say Route table) is 
nothing but a collection of different routes. 
What is route? 
A system works on pattern matching mechanism. A route 
match incoming request to meet a specific pattern and allows 
once matched else denied. 
What happened at runtime? 
At runtime, routing engine uses route table (contains different 
routes) to match incoming urls with the defined route patterns 
(url patterns).
OVERVIEW OF ROUTES COLLECTION 
In above image, url will be processed if any match found else 
it will throw the HTTP Status code Not Found (404 error).
REVISIT SESSION 
In this very first session we covered: 
 Basics of MVC 
 Discussed MVC pattern 
 Discussed basics of MVC architecture 
 Discussed basics of route collection / route table 
 Read here: ASP.Net MVC Series For Beginners: Part 1
QUESTION/ANSWER 
Surely, you should have questions, it is hard to discuss all the 
questions, please compile your questions and shoot me an email.
FEEDBACK 
This is a series of sessions, today we covered very basics of asp.net 
mvc part. 
In coming session we will cover new and some advanced topics. 
Your feedback is very important. Provide your feedback so, I can 
share more worthful things with you.
CONTINUES… 
Lets meet in next session …

More Related Content

PPTX
ASP.NET MVC for Begineers
PPT
MVC From Beginner to Advance in Indian Style by - Indiandotnet
PPT
Silver Light By Nyros Developer
PPTX
Technoligent providing custom ASP.NET MVC development services
PPT
MVC Architecture in ASP.Net By Nyros Developer
PDF
Difference between asp.net mvc 3 and asp.net mvc 4
PPTX
Introduction to ASP.NET MVC
PPTX
ASP .NET MVC Introduction & Guidelines
ASP.NET MVC for Begineers
MVC From Beginner to Advance in Indian Style by - Indiandotnet
Silver Light By Nyros Developer
Technoligent providing custom ASP.NET MVC development services
MVC Architecture in ASP.Net By Nyros Developer
Difference between asp.net mvc 3 and asp.net mvc 4
Introduction to ASP.NET MVC
ASP .NET MVC Introduction & Guidelines

What's hot (19)

PDF
ASP.NET MVC 3
PPT
ASP.NET MVC Presentation
PDF
Difference between asp.net web forms and asp.net mvc
PPTX
Head first asp.net mvc 2.0 rtt
PPTX
ASP.NET MVC Presentation
PDF
ASP.NET MVC difference between questions list 1
ODP
What is MVC?
PPTX
Introduction to mvc architecture
PDF
Difference between wcf and asp.net web api
PPTX
PDF
Difference between asp.net web api and asp.net mvc
PPT
MSDN - ASP.NET MVC
PPT
MVC ppt presentation
PPT
ASP .net MVC
PDF
ASP.NET MVC Introduction
PPTX
ASP .NET MVC
PPS
Introduction To Mvc
PPT
Asp.net mvc
PPTX
Mvvm pattern
ASP.NET MVC 3
ASP.NET MVC Presentation
Difference between asp.net web forms and asp.net mvc
Head first asp.net mvc 2.0 rtt
ASP.NET MVC Presentation
ASP.NET MVC difference between questions list 1
What is MVC?
Introduction to mvc architecture
Difference between wcf and asp.net web api
Difference between asp.net web api and asp.net mvc
MSDN - ASP.NET MVC
MVC ppt presentation
ASP .net MVC
ASP.NET MVC Introduction
ASP .NET MVC
Introduction To Mvc
Asp.net mvc
Mvvm pattern
Ad

Viewers also liked (18)

PPS
3 Idiots Lessons To Learn
DOC
Sample Co Letter Ok
PPTX
SAT/ACT vocab unit1_level_c
PPT
Ergonomia
PPT
Presentazione v
PPTX
Unit Testing Using N Unit
PDF
Gillete Asp By Abhay Pratap
PPT
Bullismo
PPT
Bullismobis
PPT
Business English Memos
PDF
Icici Bank Rm Project
PPS
Wcf Transaction Handling
PDF
Bullismo manuale studenti a
PPT
Border e dp
PPT
Il bullismo v
PPT
Bullismo c
PPT
Presentazione bullismo v
PPT
Neurobiologia delle emozioni
3 Idiots Lessons To Learn
Sample Co Letter Ok
SAT/ACT vocab unit1_level_c
Ergonomia
Presentazione v
Unit Testing Using N Unit
Gillete Asp By Abhay Pratap
Bullismo
Bullismobis
Business English Memos
Icici Bank Rm Project
Wcf Transaction Handling
Bullismo manuale studenti a
Border e dp
Il bullismo v
Bullismo c
Presentazione bullismo v
Neurobiologia delle emozioni
Ad

Similar to Asp net mvc series for beginers part 1 (20)

PPTX
Model view controller (mvc)
PPTX
MVC Framework
PPTX
Intro ASP MVC
PPTX
Getting started with MVC 5 and Visual Studio 2013
PDF
Asp 1-mvc introduction
PPTX
Asp.net mvc presentation by Nitin Sawant
PPTX
Introduction to ASP.Net MVC
PPTX
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
PDF
Jinal desai .net
PPTX
Asp.net With mvc handson
PPT
ASP.net MVC CodeCamp Presentation
PDF
Aspnetmvc 1
PDF
Asp 1a-aspnetmvc
PPTX
ASP.NET MVC Fundamental
PPTX
ASP.NET Presentation
PDF
MVC Interview Questions PDF By ScholarHat
PDF
ASP NET MVC in Action 1st Edition Jeffrey Palermo
PPTX
PPTX
ASP.net MVC Introduction Wikilogia (nov 2014)
PPT
Introduction to ASP.NET MVC 1.0
Model view controller (mvc)
MVC Framework
Intro ASP MVC
Getting started with MVC 5 and Visual Studio 2013
Asp 1-mvc introduction
Asp.net mvc presentation by Nitin Sawant
Introduction to ASP.Net MVC
SoftServe - "ASP.NET MVC як наступний крок у розвитку технології розробки Web...
Jinal desai .net
Asp.net With mvc handson
ASP.net MVC CodeCamp Presentation
Aspnetmvc 1
Asp 1a-aspnetmvc
ASP.NET MVC Fundamental
ASP.NET Presentation
MVC Interview Questions PDF By ScholarHat
ASP NET MVC in Action 1st Edition Jeffrey Palermo
ASP.net MVC Introduction Wikilogia (nov 2014)
Introduction to ASP.NET MVC 1.0

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Lesson notes of climatology university.
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Institutional Correction lecture only . . .
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
O7-L3 Supply Chain Operations - ICLT Program
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Microbial disease of the cardiovascular and lymphatic systems
Final Presentation General Medicine 03-08-2024.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Module 4: Burden of Disease Tutorial Slides S2 2025
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Lesson notes of climatology university.
Anesthesia in Laparoscopic Surgery in India
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
01-Introduction-to-Information-Management.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Institutional Correction lecture only . . .
A systematic review of self-coping strategies used by university students to ...
Microbial diseases, their pathogenesis and prophylaxis

Asp net mvc series for beginers part 1

  • 1. Gaurav Kumar Arora Twitter - #g_arora Gaurav is an enthusiast Technologist. He is an author of http://c-sharpcorner.com , having more than 13yrs experience in the industry
  • 2. ASP.NET MVC – SERIES FOR BEGINERS: PART-1
  • 3. ATTENTION This is a first session of our Beginners series. We will discuss very basic topics in this session. I would like to make this session more interactive, do participate and make this session more presentable. Compile your views, which you want to add and send me I will publish all with your name.
  • 4. AGENDA  Introduction to MVC  Why MVC?  Reason to choose MVC against asp.net web forms  Overview of Model View Controller  Overview working of MVC  Overview of routes collection  Revisiting session  Question / Answer / Suggestion
  • 5. INTRODUCTION TO MVC A background to Asp.Net MVC:  Is based on Asp.Net  A framework for RAD (rapid application development), used to develop Web application  Is a composition of Model, View Controller  Is an open source and code is available at CodePlex [In 2009 – released under Microsoft Public License and in 2012 – released under Apache License 2.0]
  • 6. WHY MVC? Take a moment and think about a valuable Software Pattern Model-view-controller. We can also predicts from the image that MVC pattern divides a software application into a three interconnected parts/components. Basically, it’s a concept of separation (here just separation of internal representation of information from ways/logics/techniques how it is being represented to the end-user)
  • 7. WHY MVC? Controller can send commands/directions to the model to update its state as well as commands over to view. Associated views and controller get notified by Model as per changes of its state. Model provides specific result as a output upon the request of View to represent.
  • 8. WHY MVC? Lets understand this from associated image In simple words, we can say that MVC is providing a facility to make our layers separate which are separated and interacting with each-other.
  • 9. ASP.NET MVC OVER ASP.NET WEBFORMS There are numerous reasons to choose Asp.Net for web development over Asp.Net WebForms:  Asp.Net MVC is a web framework and is based on MVC pattern  No viewstate (performance is better in asp.net mvc)  Completely testable  Integration with client side (easily handshake with client side scripting like Jquery etc.)  Flexibility (provides various views engines, which renders HTML – Razor View Engine is most famous)
  • 10. OVERVIEW OF MODEL VIEW CONTROLLER Devs we have already covered this in previous slides, lets discuss it again.
  • 11. OVERVIEW OF MODEL VIEW CONTROLLER Conclusion - what we discussed (for asp.net mvc framework) What is a Model?  MVC model is typically a class (of C# or VB.NET).  Both controller and view can access model.  A model can be used to pass data from Controller to view  Main purpose of a view is to display data in page with the use of model.
  • 12. OVERVIEW OF MODEL VIEW CONTROLLER Conclusion - what we discussed (for asp.net mvc framework) What is a View?  View is nothing but a page you can say a web page and it is not having any code-behind  All page specific HTML generation and formatting can be done inside view  A request to view can be made only from a controller’s action method
  • 13. OVERVIEW OF MODEL VIEW CONTROLLER Conclusion - what we discussed (for asp.net mvc framework) What is a Controller?  Controller is typically a class (of C# or VB.Net) and inherits "system.mvc.controller"  Within this class methods can be implemented and called as action methods. These are responsible for responding to browser and/or calling views.  Controller class can access and use model class to pass data to views
  • 14. OVERVIEW WORKING OF MVC In this session we are not going to cover only basic things: High level overview says – browser sends request to Asp.Net MVC and it returns response back to browser [request is HTTP Request and response is HTTP response]. Lets discuss shown image:
  • 15. OVERVIEW WORKING OF MVC In broader way – First request comes to Route Tables then passes to specific controller before interaction with Model Binding it goes through Authentication & Authorization and afterwards Fires a specific Action Method and execute the results to View. Lets take an example to discuss more.
  • 16. OVERVIEW OF ROUTES COLLECTION In simple words, routes collection (also can say Route table) is nothing but a collection of different routes. What is route? A system works on pattern matching mechanism. A route match incoming request to meet a specific pattern and allows once matched else denied. What happened at runtime? At runtime, routing engine uses route table (contains different routes) to match incoming urls with the defined route patterns (url patterns).
  • 17. OVERVIEW OF ROUTES COLLECTION In above image, url will be processed if any match found else it will throw the HTTP Status code Not Found (404 error).
  • 18. REVISIT SESSION In this very first session we covered:  Basics of MVC  Discussed MVC pattern  Discussed basics of MVC architecture  Discussed basics of route collection / route table  Read here: ASP.Net MVC Series For Beginners: Part 1
  • 19. QUESTION/ANSWER Surely, you should have questions, it is hard to discuss all the questions, please compile your questions and shoot me an email.
  • 20. FEEDBACK This is a series of sessions, today we covered very basics of asp.net mvc part. In coming session we will cover new and some advanced topics. Your feedback is very important. Provide your feedback so, I can share more worthful things with you.
  • 21. CONTINUES… Lets meet in next session …