SlideShare a Scribd company logo
ASP.NET MVC Overview
Models. Model objects are the parts of the application that implement the logic for the application's data domain. For example, a Product object might retrieve information from a database, operate on it, and then write updated information back to a Products table in a SQL Server database.Views. Views are the components that display the application's user interface (UI). Typically, this UI is created from the model data. An example would be an edit view of a Products table that displays text boxes, drop-down lists, and check boxes based on the current state of a Product object.Controllers. Controllers are the components that handle user interaction, work with the model, and ultimately select a view to render that displays UI. In an MVC application, the view only displays information; the controller handles and responds to user input and interaction. For example, the controller handles query-string values, and passes these values to the model, which in turn might use these values to query the database.
  When to Create an MVC ApplicationYou must consider carefully whether to implement a Web application by using either the ASP.NET MVC framework or the ASP.NET Web Forms model. The MVC framework does not replace the Web Forms model; you can use either framework for Web applications. (If you have existing Web Forms-based applications, these continue to work exactly as they always have.)Before you decide to use the MVC framework or the Web Forms model for a specific Web site, weigh the advantages of each approach.
Advantages of an MVC-Based Web ApplicationThe ASP.NET MVC framework offers the following advantages: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.
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.Advantages of a Web Forms-Based Web ApplicationThe Web Forms-based framework offers the following advantages:It supports an event model that preserves state over HTTP, which benefits line-of-business Web application development. The Web Forms-based application provides dozens of events that are supported in hundreds of server controls.
It uses a Page Controller pattern that adds functionality to individual pages.
It uses view state on server-based forms, which can make managing state information easier.
Ad

More Related Content

What's hot (20)

Introduction to mvc architecture
Introduction to mvc architectureIntroduction to mvc architecture
Introduction to mvc architecture
ravindraquicsolv
ย 
Mvc
MvcMvc
Mvc
abhigad
ย 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVC
Anton Krasnoshchok
ย 
MVC Framework
MVC FrameworkMVC Framework
MVC Framework
Ashton Feller
ย 
Java server faces
Java server facesJava server faces
Java server faces
owli93
ย 
Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010
Rishu Mehra
ย 
Building Web Application Using Spring Framework
Building Web Application Using Spring FrameworkBuilding Web Application Using Spring Framework
Building Web Application Using Spring Framework
Edureka!
ย 
Spring MVC 3.0 Framework (sesson_2)
Spring MVC 3.0 Framework (sesson_2)Spring MVC 3.0 Framework (sesson_2)
Spring MVC 3.0 Framework (sesson_2)
Ravi Kant Soni ([email protected])
ย 
Basics of asp.net mvc
Basics of asp.net mvc Basics of asp.net mvc
Basics of asp.net mvc
Micky S
ย 
JSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End FrameworksJSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End Frameworks
Ian Hlavats
ย 
Mvc pattern and implementation in java fair
Mvc   pattern   and implementation   in   java fairMvc   pattern   and implementation   in   java fair
Mvc pattern and implementation in java fair
Tech_MX
ย 
Introduction to Struts 1.3
Introduction to Struts 1.3Introduction to Struts 1.3
Introduction to Struts 1.3
Ilio Catallo
ย 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot net
neha sharma
ย 
Introducing asp.net core mvc web application
Introducing asp.net core mvc web applicationIntroducing asp.net core mvc web application
Introducing asp.net core mvc web application
Joy Sarker
ย 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamental
ldcphuc
ย 
Mvc fundamental
Mvc fundamentalMvc fundamental
Mvc fundamental
Nguyแป…n Thร nh Phรกt
ย 
ASP.net MVC Introduction Wikilogia (nov 2014)
ASP.net MVC Introduction Wikilogia (nov 2014)ASP.net MVC Introduction Wikilogia (nov 2014)
ASP.net MVC Introduction Wikilogia (nov 2014)
Hatem Hamad
ย 
Asp.net,mvc
Asp.net,mvcAsp.net,mvc
Asp.net,mvc
Prashant Kumar
ย 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
Prashant Kumar
ย 
Intro ASP MVC
Intro ASP MVCIntro ASP MVC
Intro ASP MVC
KrishnaPPatel
ย 
Introduction to mvc architecture
Introduction to mvc architectureIntroduction to mvc architecture
Introduction to mvc architecture
ravindraquicsolv
ย 
Mvc
MvcMvc
Mvc
abhigad
ย 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVC
Anton Krasnoshchok
ย 
MVC Framework
MVC FrameworkMVC Framework
MVC Framework
Ashton Feller
ย 
Java server faces
Java server facesJava server faces
Java server faces
owli93
ย 
Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010Mvc 4 0_jayant_jindal_28082010
Mvc 4 0_jayant_jindal_28082010
Rishu Mehra
ย 
Building Web Application Using Spring Framework
Building Web Application Using Spring FrameworkBuilding Web Application Using Spring Framework
Building Web Application Using Spring Framework
Edureka!
ย 
Basics of asp.net mvc
Basics of asp.net mvc Basics of asp.net mvc
Basics of asp.net mvc
Micky S
ย 
JSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End FrameworksJSF 2.3: Integration with Front-End Frameworks
JSF 2.3: Integration with Front-End Frameworks
Ian Hlavats
ย 
Mvc pattern and implementation in java fair
Mvc   pattern   and implementation   in   java fairMvc   pattern   and implementation   in   java fair
Mvc pattern and implementation in java fair
Tech_MX
ย 
Introduction to Struts 1.3
Introduction to Struts 1.3Introduction to Struts 1.3
Introduction to Struts 1.3
Ilio Catallo
ย 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot net
neha sharma
ย 
Introducing asp.net core mvc web application
Introducing asp.net core mvc web applicationIntroducing asp.net core mvc web application
Introducing asp.net core mvc web application
Joy Sarker
ย 
ASP.NET MVC Fundamental
ASP.NET MVC FundamentalASP.NET MVC Fundamental
ASP.NET MVC Fundamental
ldcphuc
ย 
ASP.net MVC Introduction Wikilogia (nov 2014)
ASP.net MVC Introduction Wikilogia (nov 2014)ASP.net MVC Introduction Wikilogia (nov 2014)
ASP.net MVC Introduction Wikilogia (nov 2014)
Hatem Hamad
ย 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
Prashant Kumar
ย 
Intro ASP MVC
Intro ASP MVCIntro ASP MVC
Intro ASP MVC
KrishnaPPatel
ย 

Viewers also liked (20)

Kza Presentatie (1)
Kza Presentatie (1)Kza Presentatie (1)
Kza Presentatie (1)
plinnebank
ย 
Presentazione Comuncaremeglio
Presentazione Comuncaremeglio Presentazione Comuncaremeglio
Presentazione Comuncaremeglio
Comunicaremeglio
ย 
Service Inzicht [Compatibiliteitsmodus]
Service Inzicht [Compatibiliteitsmodus]Service Inzicht [Compatibiliteitsmodus]
Service Inzicht [Compatibiliteitsmodus]
plinnebank
ย 
ISEP NO - US American Football
ISEP NO - US American FootballISEP NO - US American Football
ISEP NO - US American Football
Oslo
ย 
Sessi
SessiSessi
Sessi
Asif Atick
ย 
Producer consumerproblem
Producer consumerproblemProducer consumerproblem
Producer consumerproblem
PrasannaKumar Sathyanarayanan
ย 
Session 2
Session 2Session 2
Session 2
Asif Atick
ย 
Locating Oneself in Global Learning- First 4 Readings
Locating Oneself in Global Learning- First 4 ReadingsLocating Oneself in Global Learning- First 4 Readings
Locating Oneself in Global Learning- First 4 Readings
Oslo
ย 
Oslo Vikings09 Schedule&Workout
Oslo Vikings09 Schedule&WorkoutOslo Vikings09 Schedule&Workout
Oslo Vikings09 Schedule&Workout
Oslo
ย 
20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ็”ขๆฅญๆฆ‚่ซ–
20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ็”ขๆฅญๆฆ‚่ซ–20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ็”ขๆฅญๆฆ‚่ซ–
20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ็”ขๆฅญๆฆ‚่ซ–
Taiwan Inbound Marketing Envangelist
ย 
initiation SSH_SecuriNets ISI Tunisie
initiation SSH_SecuriNets ISI Tunisieinitiation SSH_SecuriNets ISI Tunisie
initiation SSH_SecuriNets ISI Tunisie
Donia Hammami
ย 
้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?
้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?
้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?
Taiwan Inbound Marketing Envangelist
ย 
Scala presentationjune112011
Scala presentationjune112011Scala presentationjune112011
Scala presentationjune112011
PrasannaKumar Sathyanarayanan
ย 
Introduction to akka chense
Introduction to akka   chenseIntroduction to akka   chense
Introduction to akka chense
PrasannaKumar Sathyanarayanan
ย 
20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง
20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง
20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง
Taiwan Inbound Marketing Envangelist
ย 
ๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital media
ๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital mediaๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital media
ๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital media
Taiwan Inbound Marketing Envangelist
ย 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
eldorina
ย 
Classification pi rads
Classification pi radsClassification pi rads
Classification pi rads
Regis Portalez
ย 
rapport de projet de fin d'รฉtude_PFE
rapport de projet de fin d'รฉtude_PFErapport de projet de fin d'รฉtude_PFE
rapport de projet de fin d'รฉtude_PFE
Donia Hammami
ย 
ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines  ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
ย 
Kza Presentatie (1)
Kza Presentatie (1)Kza Presentatie (1)
Kza Presentatie (1)
plinnebank
ย 
Presentazione Comuncaremeglio
Presentazione Comuncaremeglio Presentazione Comuncaremeglio
Presentazione Comuncaremeglio
Comunicaremeglio
ย 
Service Inzicht [Compatibiliteitsmodus]
Service Inzicht [Compatibiliteitsmodus]Service Inzicht [Compatibiliteitsmodus]
Service Inzicht [Compatibiliteitsmodus]
plinnebank
ย 
ISEP NO - US American Football
ISEP NO - US American FootballISEP NO - US American Football
ISEP NO - US American Football
Oslo
ย 
Sessi
SessiSessi
Sessi
Asif Atick
ย 
Session 2
Session 2Session 2
Session 2
Asif Atick
ย 
Locating Oneself in Global Learning- First 4 Readings
Locating Oneself in Global Learning- First 4 ReadingsLocating Oneself in Global Learning- First 4 Readings
Locating Oneself in Global Learning- First 4 Readings
Oslo
ย 
Oslo Vikings09 Schedule&Workout
Oslo Vikings09 Schedule&WorkoutOslo Vikings09 Schedule&Workout
Oslo Vikings09 Schedule&Workout
Oslo
ย 
20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ็”ขๆฅญๆฆ‚่ซ–
20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ็”ขๆฅญๆฆ‚่ซ–20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ็”ขๆฅญๆฆ‚่ซ–
20100604 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ็”ขๆฅญๆฆ‚่ซ–
Taiwan Inbound Marketing Envangelist
ย 
initiation SSH_SecuriNets ISI Tunisie
initiation SSH_SecuriNets ISI Tunisieinitiation SSH_SecuriNets ISI Tunisie
initiation SSH_SecuriNets ISI Tunisie
Donia Hammami
ย 
้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?
้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?
้›ถๅ”ฎๆฅญๅฆ‚ไฝ•้€้Ž LBS ้‹็‡Ÿๅ•†ๅฏฆ็พ Location Based Markerting?
Taiwan Inbound Marketing Envangelist
ย 
20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง
20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ  ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง
20100611 ๆ–‡ๅŒ–ๅคงๅญธ็ถฒ่ทฏๅบ—่ˆ–็ญ ๅฏฆ้ซ”่ˆ‡็ถฒ่ทฏ้Šทๅ”ฎๆŠ€ๅทง
Taiwan Inbound Marketing Envangelist
ย 
ๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital media
ๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital mediaๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital media
ๆ•ธไฝๅช’้ซ”่ˆˆ่ตทๆ‰€ๅธถไพ†็š„่กŒ้Šท่กๆ“Š/The marketing impact derived from new emerging digital media
Taiwan Inbound Marketing Envangelist
ย 
ASP .NET MVC
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
eldorina
ย 
Classification pi rads
Classification pi radsClassification pi rads
Classification pi rads
Regis Portalez
ย 
rapport de projet de fin d'รฉtude_PFE
rapport de projet de fin d'รฉtude_PFErapport de projet de fin d'รฉtude_PFE
rapport de projet de fin d'รฉtude_PFE
Donia Hammami
ย 
ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines  ASP .NET MVC Introduction & Guidelines
ASP .NET MVC Introduction & Guidelines
Dev Raj Gautam
ย 
Ad

Similar to Session 1 (20)

ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin Saleem
SaBin SaleEm
ย 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
Er. Kamal Bhusal
ย 
Spring mvc 2.0
Spring mvc 2.0Spring mvc 2.0
Spring mvc 2.0
Rudra Garnaik, PMI-ACPยฎ
ย 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan
ย 
Jinal desai .net
Jinal desai .netJinal desai .net
Jinal desai .net
rohitkumar1987in
ย 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
ivpol
ย 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To Mvc
Volkan Uzun
ย 
Simple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnanSimple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnan
Gigin Krishnan
ย 
Mvc Brief Overview
Mvc Brief OverviewMvc Brief Overview
Mvc Brief Overview
rainynovember12
ย 
MVC
MVCMVC
MVC
akshin
ย 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
Sergey Seletsky
ย 
Mvc
MvcMvc
Mvc
Furqan Ashraf
ย 
Aspnetmvc 1
Aspnetmvc 1Aspnetmvc 1
Aspnetmvc 1
Fajar Baskoro
ย 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
Shiju Varghese
ย 
MVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHatMVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHat
Scholarhat
ย 
Introduction-to-ASPNET-Core ASP.NET.pptx
Introduction-to-ASPNET-Core ASP.NET.pptxIntroduction-to-ASPNET-Core ASP.NET.pptx
Introduction-to-ASPNET-Core ASP.NET.pptx
MAHERMOHAMED27
ย 
MVC 6 Introduction
MVC 6 IntroductionMVC 6 Introduction
MVC 6 Introduction
Sudhakar Sharma
ย 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Ruddarpratap
ย 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
tola99
ย 
Asp.Net MVC Intro
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
Stefano Paluello
ย 
ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin Saleem
SaBin SaleEm
ย 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan
ย 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
ivpol
ย 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To Mvc
Volkan Uzun
ย 
Simple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnanSimple mvc4 prepared by gigin krishnan
Simple mvc4 prepared by gigin krishnan
Gigin Krishnan
ย 
Mvc Brief Overview
Mvc Brief OverviewMvc Brief Overview
Mvc Brief Overview
rainynovember12
ย 
MVC
MVCMVC
MVC
akshin
ย 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
Sergey Seletsky
ย 
Aspnetmvc 1
Aspnetmvc 1Aspnetmvc 1
Aspnetmvc 1
Fajar Baskoro
ย 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
Shiju Varghese
ย 
MVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHatMVC Interview Questions PDF By ScholarHat
MVC Interview Questions PDF By ScholarHat
Scholarhat
ย 
Introduction-to-ASPNET-Core ASP.NET.pptx
Introduction-to-ASPNET-Core ASP.NET.pptxIntroduction-to-ASPNET-Core ASP.NET.pptx
Introduction-to-ASPNET-Core ASP.NET.pptx
MAHERMOHAMED27
ย 
MVC 6 Introduction
MVC 6 IntroductionMVC 6 Introduction
MVC 6 Introduction
Sudhakar Sharma
ย 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Ruddarpratap
ย 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
tola99
ย 
Asp.Net MVC Intro
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
Stefano Paluello
ย 
Ad

Recently uploaded (20)

"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
ย 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
ย 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
ย 
Datastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptxDatastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptx
kaleeswaric3
ย 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
ย 
"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko
Fwdays
ย 
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
ย 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
ย 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
ย 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
ย 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
ย 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
ย 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
ย 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
ย 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
ย 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
ย 
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
ย 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
ย 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
ย 
Datastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptxDatastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptx
kaleeswaric3
ย 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
ย 
"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko
Fwdays
ย 
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
ย 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
ย 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
ย 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
ย 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
ย 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
ย 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
ย 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
ย 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
ย 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
ย 

Session 1

  • 2. Models. Model objects are the parts of the application that implement the logic for the application's data domain. For example, a Product object might retrieve information from a database, operate on it, and then write updated information back to a Products table in a SQL Server database.Views. Views are the components that display the application's user interface (UI). Typically, this UI is created from the model data. An example would be an edit view of a Products table that displays text boxes, drop-down lists, and check boxes based on the current state of a Product object.Controllers. Controllers are the components that handle user interaction, work with the model, and ultimately select a view to render that displays UI. In an MVC application, the view only displays information; the controller handles and responds to user input and interaction. For example, the controller handles query-string values, and passes these values to the model, which in turn might use these values to query the database.
  • 3. When to Create an MVC ApplicationYou must consider carefully whether to implement a Web application by using either the ASP.NET MVC framework or the ASP.NET Web Forms model. The MVC framework does not replace the Web Forms model; you can use either framework for Web applications. (If you have existing Web Forms-based applications, these continue to work exactly as they always have.)Before you decide to use the MVC framework or the Web Forms model for a specific Web site, weigh the advantages of each approach.
  • 4. Advantages of an MVC-Based Web ApplicationThe ASP.NET MVC framework offers the following advantages:It makes it easier to manage complexity by dividing an application into the model, the view, and the controller.
  • 5. 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.
  • 6. 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.
  • 7. It provides better support for test-driven development (TDD).
  • 8. 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.Advantages of a Web Forms-Based Web ApplicationThe Web Forms-based framework offers the following advantages:It supports an event model that preserves state over HTTP, which benefits line-of-business Web application development. The Web Forms-based application provides dozens of events that are supported in hundreds of server controls.
  • 9. It uses a Page Controller pattern that adds functionality to individual pages.
  • 10. It uses view state on server-based forms, which can make managing state information easier.
  • 11. It works well for small teams of Web developers and designers who want to take advantage of the large number of components available for rapid application development.
  • 12. In general, it is less complex for application development, because the components (the Page class, controls, and so on) are tightly integrated and usually require less code than the MVC model.The ASP.NET MVC framework provides the following features:Separation of application tasks (input logic, business logic, and UI logic), testability, and test-driven development (TDD)
  • 13. An extensible and pluggable framework. The components of the ASP.NET MVC framework are designed so that they can be easily replaced or customized. You can plug in your own view engine, URL routing policy, action-method parameter serialization, and other components. The ASP.NET MVC framework also supports the use of Dependency Injection (DI) and Inversion of Control (IOC) container models. DI enables you to inject objects into a class, instead of relying on the class to create the object itself. IOC specifies that if an object requires another object, the first objects should get the second object from an outside source such as a configuration file. This makes testing easier.Extensive support for ASP.NET routing, which is a powerful URL-mapping component that lets you build applications that have comprehensible and searchable URLs
  • 14. Support for using the markup in existing ASP.NET page (.aspx files), user control (.ascx files), and master page (.master files) markup files as view templates. You can use existing ASP.NET features with the ASP.NET MVC framework, such as nested master pages, in-line expressions (<%=ย %>), declarative server controls, templates, data-binding, localization, and so on.
  • 15. Support for existing ASP.NET features. ASP.NET MVC lets you use features such as forms authentication and Windows authentication, URL authorization, membership and roles, output and data caching, session and profile state management, health monitoring, the configuration system, and the provider architecture.MVC 3 New Features MVC Vs WebForms
  • 16. MVC Project Structure App_Data, which is the physical store for data. This folder has the same role as it does in ASP.NET Web sites that use Web Forms pages.
  • 17. Content, which is the recommended location to add content files such as cascading style sheet files, images, and so on. In general, the Content folder is for static files.
  • 18. Controllers, which is the recommended location for controllers. The MVC framework requires the names of all controllers to end with "Controller", such as HomeController, LoginController, or ProductController.Models, which is provided for classes that represent the application model for your MVC Web application. This folder usually includes code that defines objects and that defines the logic for interaction with the data store. Typically, the actual model objects will be in separate class libraries. However, when you create a new application, you might put classes here and then move them into separate class libraries at a later point in the development cycle.
  • 19. Scripts, which is the recommended location for script files that support the application. By default, this folder contains ASP.NET AJAX foundation files and the jQuery library.
  • 20. Views, which is the recommended location for views. Views use ViewPage (.aspx), ViewUserControl (.ascx), and ViewMasterPage (.master) files, in addition to any other files that are related to rendering views. The Views folder contains a folder for each controller; the folder is named with the controller-name prefix. For example, if you have a controller named HomeController, the Views folder contains a folder named Home. By default, when the ASP.NET MVC framework loads a view, it looks for a ViewPage (.aspx) file that has the requested view name in the Views\controllerName folder. By default, there is also a folder named Shared in the Views folder, which does not correspond to any controller. The Shared folder is used for views that are shared across multiple controllers. For example, you can put the Web application's master page in the Shared folder.
  • 21. In addition to the folders listed previously, an MVC Web application uses code in the Global.asax file to set global URL routing defaults, and it uses the Web.config file to configure the application.