SlideShare a Scribd company logo
MVC for ASP.NET Developers
                   Abhijit Gadkari
                 Enterprise Architect




http://www.technolatte.net/image.axd?picture=2009%2F3%2Frequest.jpg




Yet Other WebFramework!
Million $ Question?
“Who here is attending this talk
because you are concerned that
ASP.NET MVC is going to throw
out all of your existing knowledge
on Web Forms and require
you to learn new technology?”
                      From Chapter 2 of the Professional ASP.NET MVC
Please Note:

Release of ASP.NET MVC does not mean the
death of Web Forms. This just isn't true.
ASP.NET MVC is not ASP.NET Web Forms 4.0.
It's an alternative to Web Forms,
and it's a fully supported part of the
[.NET] framework.

           Professional ASP.NET MVC 1.0 by
                           Scott Guthrie et al.
                                  [page 171]
Lets call our dear
friend...
http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en




                     www.asp.net/mvc
Model View Controller (MVC) is one of the most quoted (and most
misquoted) pattern around. It started as a framework developed
By Trygve Reenskaug for the Smalltalk platform in the late 1970s.
Since then it has played an influential role in most UI frameworks
and the thinking about UI design.
     - from Patterns of Enterprise Application Architecture by Martin
                                                Fowler et.al. Page 330


           View                                  Controller




                               Model


 Splits user interface interaction into three distinct roles.
What is a Model View Controller (MVC) Framework?

      MVC is a framework methodology that divides an application's
  implementation into three component roles: models, views,
 and controllers.

 "Models" in a MVC based application are the components of the application
 that are responsible for maintaining state. Often this state is persisted inside
  a database (for example: we might have a Product class that is used to
  represent order data from the Products table inside SQL).

 "Views" in a MVC based application are the components responsible
  for displaying the application's user interface. Typically this UI is created
  off of the model data (for example: we might create an Product "Edit" view
  that surfaces textboxes, dropdowns and checkboxes based on the
 current state of a Product object).

 "Controllers" in a MVC based application are the components responsible for
  handling end user interaction, manipulating the model, and ultimately
  choosing a view to render to display UI. In a MVC application
  the view is only about displaying information - it is the controller that
 handles and responds to user input and interaction.
http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx



One of the benefits of using a MVC methodology is that it helps
enforce a clean separation of concerns between the models, views
and controllers within an application.

Maintaining a clean separation of concerns makes
the testing of applications much easier, since the contract between
different application components are more clearly defined and articulated.
                                              Slide 4 and 5 from
                                              http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx
My First MVC
    Application...

MVC is built on top of ASP.NET
3
              Controllers


                    4
                  Models



                       5.
                     Scripts



                     2
                   Views

                     1
                 Default.as-
                     px
Convention over Configuration!
MVC with real
Model...
Summary

MVC framework is not an alternative to the existing web form
Technology. Use Web Forms on projects where you use third party
server controls, web parts and dynamic data

Going forward MS will support MVC as well as Web Forms

MVC can be added to the existing ASP.NET web form application
       ASP.NET MVC                     ASP.NET Web Forms
No Server Controls                 Based on the standard server
                                  control model
No Postbacks and ViewState – Postbacks and ViewState is an
View will talk to the controller integral part of this framework
 Controller is the glue that binds Codebehind file is a glue that
a view with the model              binds a view with the model
Doesn't hide HTML & HTTP          Hides HTML and HTTP
Thanks for attending this presentation.
Please let me know your feedback on abhigad@hotmail.com
We are planning on conducting
a day long [9 -5] hands-on
seminar on ASP.NET MVC in
Orange County.

Let us know if you
are interested...

ABHIGAD@HOTMAIL.COM

More Related Content

PDF
Asp.net mvc basic introduction
PDF
Dot net interview questions and asnwers
PPTX
Mvc framework
PPTX
Mortal Kombat! ASP.NET MVC vs ASP.NET Webforms – ASP.NET MVC is amazing
PPTX
Introduction to ASP.NET MVC
PPT
Asp.net mvc
PPTX
Mvc fundamental
PPT
Introduction to ASP.NET MVC
Asp.net mvc basic introduction
Dot net interview questions and asnwers
Mvc framework
Mortal Kombat! ASP.NET MVC vs ASP.NET Webforms – ASP.NET MVC is amazing
Introduction to ASP.NET MVC
Asp.net mvc
Mvc fundamental
Introduction to ASP.NET MVC

What's hot (20)

PPTX
MVC architecture by Mohd.Awais on 18th Aug, 2017
PPT
MVC Architecture in ASP.Net By Nyros Developer
PPT
MVC Pattern. Flex implementation of MVC
PPTX
MVC Framework
PPTX
Introduction to mvc architecture
ODP
What is MVC?
PPT
MSDN - ASP.NET MVC
PPTX
Asp.net mvc presentation by Nitin Sawant
PPT
MVC ppt presentation
PPTX
Asp.net MVC training session
PPTX
ASP.net MVC Introduction Wikilogia (nov 2014)
PPTX
Mvc summary
PDF
MVC Architecture
PDF
MVC architecture
PPTX
ASP.NET MVC Presentation
PPT
ASP.NET MVC Presentation
PPSX
Asp.net mvc
MVC architecture by Mohd.Awais on 18th Aug, 2017
MVC Architecture in ASP.Net By Nyros Developer
MVC Pattern. Flex implementation of MVC
MVC Framework
Introduction to mvc architecture
What is MVC?
MSDN - ASP.NET MVC
Asp.net mvc presentation by Nitin Sawant
MVC ppt presentation
Asp.net MVC training session
ASP.net MVC Introduction Wikilogia (nov 2014)
Mvc summary
MVC Architecture
MVC architecture
ASP.NET MVC Presentation
ASP.NET MVC Presentation
Asp.net mvc
Ad

Viewers also liked (20)

PPT
1001 RAZONES PARA LEER
PPT
081208 Aaa Year In Review Presentation
PDF
How to build a better inbound marketing machine
PDF
Content Strategy
PPTX
Extend Your MS Dynamics ERP & CRM with a Complete BI Solution
KEY
Holopticism
PPT
Proforma Branded Apps
PPTX
Interior Design: Easy Ways to Add Flash Without Wasting Cash
PPT
Carlsbad Median Prices Jan-June 2009
PDF
Mysql Fulltext Search
ZIP
Andreas .Key
PPT
Charge conference 2013
PDF
Elevate your webapps with Scala and Lift
PPS
Mars Approaching
PPT
智慧型電子設備之未來概念設計研究
PPT
Gastcollege CHE
PPTX
Prospero 2010
PPTX
Panorama Business Intelligence Solution
PPT
Question 2
1001 RAZONES PARA LEER
081208 Aaa Year In Review Presentation
How to build a better inbound marketing machine
Content Strategy
Extend Your MS Dynamics ERP & CRM with a Complete BI Solution
Holopticism
Proforma Branded Apps
Interior Design: Easy Ways to Add Flash Without Wasting Cash
Carlsbad Median Prices Jan-June 2009
Mysql Fulltext Search
Andreas .Key
Charge conference 2013
Elevate your webapps with Scala and Lift
Mars Approaching
智慧型電子設備之未來概念設計研究
Gastcollege CHE
Prospero 2010
Panorama Business Intelligence Solution
Question 2
Ad

Similar to Mvc (20)

PPTX
Technoligent providing custom ASP.NET MVC development services
PPT
Ppt of Basic MVC Structure
PPTX
An overview of microsoft mvc dot net
DOCX
IntroductionToMVC
PDF
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
PDF
Asp.net Mvc Introduction
PPTX
ASP .NET MVC
PPT
Asp.net mvc
PDF
Best Institute for ASP NET MVC Course in India
PPTX
Asp.net c# MVC-5 Training-Day-1 of Day-9
PDF
Spring Framework-II
PDF
Mvc Architecture in a web based application
PPTX
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
PPTX
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
PDF
ASP.Net | Sabin Saleem
PPTX
Head first asp.net mvc 2.0 rtt
PDF
Jinal desai .net
PPT
Mvc 130330091359-phpapp01
PPT
Struts(mrsurwar) ppt
PPTX
MVC - Introduction
Technoligent providing custom ASP.NET MVC development services
Ppt of Basic MVC Structure
An overview of microsoft mvc dot net
IntroductionToMVC
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
Asp.net Mvc Introduction
ASP .NET MVC
Asp.net mvc
Best Institute for ASP NET MVC Course in India
Asp.net c# MVC-5 Training-Day-1 of Day-9
Spring Framework-II
Mvc Architecture in a web based application
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
ASP.Net | Sabin Saleem
Head first asp.net mvc 2.0 rtt
Jinal desai .net
Mvc 130330091359-phpapp01
Struts(mrsurwar) ppt
MVC - Introduction

Mvc

  • 1. MVC for ASP.NET Developers Abhijit Gadkari Enterprise Architect http://www.technolatte.net/image.axd?picture=2009%2F3%2Frequest.jpg Yet Other WebFramework!
  • 2. Million $ Question? “Who here is attending this talk because you are concerned that ASP.NET MVC is going to throw out all of your existing knowledge on Web Forms and require you to learn new technology?” From Chapter 2 of the Professional ASP.NET MVC
  • 3. Please Note: Release of ASP.NET MVC does not mean the death of Web Forms. This just isn't true. ASP.NET MVC is not ASP.NET Web Forms 4.0. It's an alternative to Web Forms, and it's a fully supported part of the [.NET] framework. Professional ASP.NET MVC 1.0 by Scott Guthrie et al. [page 171]
  • 4. Lets call our dear friend...
  • 6. Model View Controller (MVC) is one of the most quoted (and most misquoted) pattern around. It started as a framework developed By Trygve Reenskaug for the Smalltalk platform in the late 1970s. Since then it has played an influential role in most UI frameworks and the thinking about UI design. - from Patterns of Enterprise Application Architecture by Martin Fowler et.al. Page 330 View Controller Model Splits user interface interaction into three distinct roles.
  • 7. What is a Model View Controller (MVC) Framework? MVC is a framework methodology that divides an application's implementation into three component roles: models, views, and controllers. "Models" in a MVC based application are the components of the application that are responsible for maintaining state. Often this state is persisted inside a database (for example: we might have a Product class that is used to represent order data from the Products table inside SQL). "Views" in a MVC based application are the components responsible for displaying the application's user interface. Typically this UI is created off of the model data (for example: we might create an Product "Edit" view that surfaces textboxes, dropdowns and checkboxes based on the current state of a Product object). "Controllers" in a MVC based application are the components responsible for handling end user interaction, manipulating the model, and ultimately choosing a view to render to display UI. In a MVC application the view is only about displaying information - it is the controller that handles and responds to user input and interaction.
  • 8. http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx One of the benefits of using a MVC methodology is that it helps enforce a clean separation of concerns between the models, views and controllers within an application. Maintaining a clean separation of concerns makes the testing of applications much easier, since the contract between different application components are more clearly defined and articulated. Slide 4 and 5 from http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx
  • 9. My First MVC Application... MVC is built on top of ASP.NET
  • 10. 3 Controllers 4 Models 5. Scripts 2 Views 1 Default.as- px Convention over Configuration!
  • 12. Summary MVC framework is not an alternative to the existing web form Technology. Use Web Forms on projects where you use third party server controls, web parts and dynamic data Going forward MS will support MVC as well as Web Forms MVC can be added to the existing ASP.NET web form application ASP.NET MVC ASP.NET Web Forms No Server Controls Based on the standard server control model No Postbacks and ViewState – Postbacks and ViewState is an View will talk to the controller integral part of this framework Controller is the glue that binds Codebehind file is a glue that a view with the model binds a view with the model Doesn't hide HTML & HTTP Hides HTML and HTTP
  • 13. Thanks for attending this presentation. Please let me know your feedback on abhigad@hotmail.com
  • 14. We are planning on conducting a day long [9 -5] hands-on seminar on ASP.NET MVC in Orange County. Let us know if you are interested... ABHIGAD@HOTMAIL.COM