SlideShare a Scribd company logo
1 of 24
Download to read offline
For ASP.NET Core Online Training : +91-999 123 502
Introduction to ASP.NET MVC
Shailendra Chauhan
Microsoft MVP, Technical Consultant and Corporate Trainer
For ASP.NET Core Online Training : +91-999 123 502
• Introduction to ASP.NET MVC
• ASP.NET MVC Evolution History
• ASP.NET Webforms vs ASP.NET MVC
• Advantages of ASP.NET MVC
• MVC Pattern
• MVC vs. 3-Tiers
• Routing
• ASP.NET MVC Pipeline
Agenda
For ASP.NET Core Online Training : +91-999 123 502
.NET Framework
ASP.NET Framework
WebForms MVC
• A new web development style on the
top of ASP.NET framework.
• Based on MVC pattern and an
alternative to WebForms.
• Doesn’t support pages and code
behind, server-controls, drag and drop,
postback, view state and event life
cycle.
ASP.NET MVC
WebFormsWebForms
For ASP.NET Core Online Training : +91-999 123 502
ASP.NET MVC Evolution History
ASP.NET
MVC 5.2.6
2018
ASP.NET
MVC 5.2.3,
WebAPI 2.2
2015
ASP.NET
MVC 5,
WebAPI 2
2013
ASP.NET
MVC 4,
WebAPI
2012
ASP.NET
4.5, MVC 3
2011
ASP.NET
4.0, MVC 2
2010
ASP.NET
MVC 1
2009
For ASP.NET Core Online Training : +91-999 123 502
• Released on Mar 13, 2009
• Runs on .NET 3.5 and with Visual Studio 2008
• MVC Pattern architecture with WebForm Engine
• Html Helpers
• Ajax helpers
• Routing
• Unit Testing
ASP.NET MVC1
For ASP.NET Core Online Training : +91-999 123 502
• Released on Mar 10, 2010
• Runs on .NET 3.5, 4.0 and with Visual Studio 2008 & 2010
• Strongly typed HTML helpers with lambda expression
• Support for Data Annotations Attribute
• Client-side validation
• UI helpers
• Areas for partitioning a large applications into modules
• Asynchronous controllers
ASP.NET MVC2
For ASP.NET Core Online Training : +91-999 123 502
• Released on Jan 13, 2011
• Runs on .NET 4.0 and with Visual Studio 2010
• Razor view engine
• Unobtrusive JavaScript validation
• Remote validation
• Compare Attribute
• ViewBag
• Sessionless Controller
ASP.NET MVC3
For ASP.NET Core Online Training : +91-999 123 502
• Global filters
• Child Action Output Caching
• Dependency resolver for IoC
• Use of NuGet to deliver software and manage dependencies
throughout the platform
ASP.NET MVC3 Contd.
For ASP.NET Core Online Training : +91-999 123 502
• Released on Aug 15, 2012
• Runs on .NET 4.0,4.5 and with Visual Studio 2010SP1 & 2012
• ASP.NET Web API
• Mobile project template using jQuery Mobile
• Display Modes
• Task support for Asynchronous Controllers
• Bundling and minification
• Support for the Windows Azure SDK
ASP.NET MVC4
For ASP.NET Core Online Training : +91-999 123 502
• Released on 17 October 2013
• Runs on .NET 4.5 and with Visual Studio 2013
• One ASP.NET
• ASP.NET Identity
• ASP.NET Scaffolding
• Authentication filters
• Bootstrap in the MVC template
• ASP.NET Web API2
• Attribute Routing
ASP.NET MVC5
For ASP.NET Core Online Training : +91-999 123 502
• Event Driven development model
• Server Controls
• Follows Web Forms Syntax
• ViewState
• Session
• File-based Url Mapping
• User Controls
• Not Open Source
ASP.NET WebForms vs. ASP.NET MVC
• MVC Pattern development model
• Html Helpers
• Follows WebForms & Razor Syntax
• ViewData, ViewBag
• Session, TempData
• Route-based Url Mapping
• Partial Views
• Open Source
For ASP.NET Core Online Training : +91-999 123 502
• Separation of concern
• Extensible and pluggable
• Light Weight
• TDD (Test Driven Development)
• URL Routing
• Better support for open source
• Supports ASP.NET features
Advantages of ASP.NET MVC
For ASP.NET Core Online Training : +91-999 123 502
Data
UI
Logic
Web Application Components
Object
Class
DOM
For ASP.NET Core Online Training : +91-999 123 502
Object
DOM
Class
MVC Pattern
Model
Controller
View
For ASP.NET Core Online Training : +91-999 123 502
Data Model
Business Model
Presentation Model
Model
For ASP.NET Core Online Training : +91-999 123 502
Standard View
Strongly Typed View
Partial View
Layout
View
For ASP.NET Core Online Training : +91-999 123 502
C#, VB Class
Action Methods
Regular Methods
Controller
For ASP.NET Core Online Training : +91-999 123 502
Model
View ControllerInteraction Interaction
Notification
Presentation
Presentation
Notification
Changes
Eg. www.domain.com/Product/Edit/1
Model-View-Controller Communication (Contd.)
For ASP.NET Core Online Training : +91-999 123 502
Model
View Controller
DAL
PL
BAL
MVC vs. 3-Tier
For ASP.NET Core Online Training : +91-999 123 502
Model
View Controller
Presentation Tier
MVC vs. 3-Tier
For ASP.NET Core Online Training : +91-999 123 502
• A pattern matching system that monitor the incoming
request and figure out what to do with that request
• Typically, a way to serve user request
Routing
Routing
Controller
View
Model
Request
Response
For ASP.NET Core Online Training : +91-999 123 502
Types of Routing
For ASP.NET Core Online Training : +91-999 123 502
ASP.NET MVC Pipeline
For ASP.NET Core Online Training : +91-999 123 502

More Related Content

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

ASP.NET MVC Online Training Course | ASP.NET MVC with Web API Tutorial - Beginner to Advance

  • 1. For ASP.NET Core Online Training : +91-999 123 502 Introduction to ASP.NET MVC Shailendra Chauhan Microsoft MVP, Technical Consultant and Corporate Trainer
  • 2. For ASP.NET Core Online Training : +91-999 123 502 • Introduction to ASP.NET MVC • ASP.NET MVC Evolution History • ASP.NET Webforms vs ASP.NET MVC • Advantages of ASP.NET MVC • MVC Pattern • MVC vs. 3-Tiers • Routing • ASP.NET MVC Pipeline Agenda
  • 3. For ASP.NET Core Online Training : +91-999 123 502 .NET Framework ASP.NET Framework WebForms MVC • A new web development style on the top of ASP.NET framework. • Based on MVC pattern and an alternative to WebForms. • Doesn’t support pages and code behind, server-controls, drag and drop, postback, view state and event life cycle. ASP.NET MVC WebFormsWebForms
  • 4. For ASP.NET Core Online Training : +91-999 123 502 ASP.NET MVC Evolution History ASP.NET MVC 5.2.6 2018 ASP.NET MVC 5.2.3, WebAPI 2.2 2015 ASP.NET MVC 5, WebAPI 2 2013 ASP.NET MVC 4, WebAPI 2012 ASP.NET 4.5, MVC 3 2011 ASP.NET 4.0, MVC 2 2010 ASP.NET MVC 1 2009
  • 5. For ASP.NET Core Online Training : +91-999 123 502 • Released on Mar 13, 2009 • Runs on .NET 3.5 and with Visual Studio 2008 • MVC Pattern architecture with WebForm Engine • Html Helpers • Ajax helpers • Routing • Unit Testing ASP.NET MVC1
  • 6. For ASP.NET Core Online Training : +91-999 123 502 • Released on Mar 10, 2010 • Runs on .NET 3.5, 4.0 and with Visual Studio 2008 & 2010 • Strongly typed HTML helpers with lambda expression • Support for Data Annotations Attribute • Client-side validation • UI helpers • Areas for partitioning a large applications into modules • Asynchronous controllers ASP.NET MVC2
  • 7. For ASP.NET Core Online Training : +91-999 123 502 • Released on Jan 13, 2011 • Runs on .NET 4.0 and with Visual Studio 2010 • Razor view engine • Unobtrusive JavaScript validation • Remote validation • Compare Attribute • ViewBag • Sessionless Controller ASP.NET MVC3
  • 8. For ASP.NET Core Online Training : +91-999 123 502 • Global filters • Child Action Output Caching • Dependency resolver for IoC • Use of NuGet to deliver software and manage dependencies throughout the platform ASP.NET MVC3 Contd.
  • 9. For ASP.NET Core Online Training : +91-999 123 502 • Released on Aug 15, 2012 • Runs on .NET 4.0,4.5 and with Visual Studio 2010SP1 & 2012 • ASP.NET Web API • Mobile project template using jQuery Mobile • Display Modes • Task support for Asynchronous Controllers • Bundling and minification • Support for the Windows Azure SDK ASP.NET MVC4
  • 10. For ASP.NET Core Online Training : +91-999 123 502 • Released on 17 October 2013 • Runs on .NET 4.5 and with Visual Studio 2013 • One ASP.NET • ASP.NET Identity • ASP.NET Scaffolding • Authentication filters • Bootstrap in the MVC template • ASP.NET Web API2 • Attribute Routing ASP.NET MVC5
  • 11. For ASP.NET Core Online Training : +91-999 123 502 • Event Driven development model • Server Controls • Follows Web Forms Syntax • ViewState • Session • File-based Url Mapping • User Controls • Not Open Source ASP.NET WebForms vs. ASP.NET MVC • MVC Pattern development model • Html Helpers • Follows WebForms & Razor Syntax • ViewData, ViewBag • Session, TempData • Route-based Url Mapping • Partial Views • Open Source
  • 12. For ASP.NET Core Online Training : +91-999 123 502 • Separation of concern • Extensible and pluggable • Light Weight • TDD (Test Driven Development) • URL Routing • Better support for open source • Supports ASP.NET features Advantages of ASP.NET MVC
  • 13. For ASP.NET Core Online Training : +91-999 123 502 Data UI Logic Web Application Components Object Class DOM
  • 14. For ASP.NET Core Online Training : +91-999 123 502 Object DOM Class MVC Pattern Model Controller View
  • 15. For ASP.NET Core Online Training : +91-999 123 502 Data Model Business Model Presentation Model Model
  • 16. For ASP.NET Core Online Training : +91-999 123 502 Standard View Strongly Typed View Partial View Layout View
  • 17. For ASP.NET Core Online Training : +91-999 123 502 C#, VB Class Action Methods Regular Methods Controller
  • 18. For ASP.NET Core Online Training : +91-999 123 502 Model View ControllerInteraction Interaction Notification Presentation Presentation Notification Changes Eg. www.domain.com/Product/Edit/1 Model-View-Controller Communication (Contd.)
  • 19. For ASP.NET Core Online Training : +91-999 123 502 Model View Controller DAL PL BAL MVC vs. 3-Tier
  • 20. For ASP.NET Core Online Training : +91-999 123 502 Model View Controller Presentation Tier MVC vs. 3-Tier
  • 21. For ASP.NET Core Online Training : +91-999 123 502 • A pattern matching system that monitor the incoming request and figure out what to do with that request • Typically, a way to serve user request Routing Routing Controller View Model Request Response
  • 22. For ASP.NET Core Online Training : +91-999 123 502 Types of Routing
  • 23. For ASP.NET Core Online Training : +91-999 123 502 ASP.NET MVC Pipeline
  • 24. For ASP.NET Core Online Training : +91-999 123 502