Introduction to
ASP.NET MVC




  Learn More @ http://www.learnnowonline.com
     Copyright © by Application Developers Training Company
Objectives




         Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Objectives
• Understand the basics of the Model-View-
  Controller pattern




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Objectives
• Understand the basics of the Model-View-
  Controller pattern
• Explore the differences between ASP.NET Web
  forms and MVC applications




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Objectives
• Understand the basics of the Model-View-
  Controller pattern
• Explore the differences between ASP.NET Web
  forms and MVC applications
• Build a sample MVC application and explore its
  structure




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Agenda




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• The Model-View-Controller Pattern




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Agenda
• The Model-View-Controller Pattern
• Differences Between MVC and Web Forms
  Applications




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Agenda
• The Model-View-Controller Pattern
• Differences Between MVC and Web Forms
  Applications
• Building a Simple MVC Application with Visual
  Studio




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
The Model-View-Controller Pattern




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
The Model-View-Controller Pattern
• ASP.NET MVC is a revolutionary way to develop
  Web applications




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
The Model-View-Controller Pattern
• ASP.NET MVC is a revolutionary way to develop
  Web applications
   Built on Model-View-Controller pattern




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
The Model-View-Controller Pattern
• ASP.NET MVC is a revolutionary way to develop
  Web applications
   Built on Model-View-Controller pattern
   Separation of concerns




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
The Model-View-Controller Pattern
• ASP.NET MVC is a revolutionary way to develop
  Web applications
   Built on Model-View-Controller pattern
   Separation of concerns
   Invented in 1978 by Trygve Reenskaug




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
The Model-View-Controller Pattern
• ASP.NET MVC is a revolutionary way to develop
  Web applications
     Built on Model-View-Controller pattern
     Separation of concerns
     Invented in 1978 by Trygve Reenskaug
     Very popular in Web development frameworks




               Learn More @ http://www.learnnowonline.com
                  Copyright © by Application Developers Training Company
The MVC Architecture




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View
   Controller




                 Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View
   Controller
• User interaction with application




                 Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View
   Controller
• User interaction with application
  1. Interacts with Web page




                 Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View
   Controller
• User interaction with application
  1. Interacts with Web page
  2. Controller handles request




                 Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View
   Controller
• User interaction with application
  1. Interacts with Web page
  2. Controller handles request
  3. Notifies model of changes



                 Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View
   Controller
• User interaction with application
  1.   Interacts with Web page
  2.   Controller handles request
  3.   Notifies model of changes
  4.   Controller selects a view


                 Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
The MVC Architecture
• Three primary components
   Model
   View
   Controller
• User interaction with application
  1.   Interacts with Web page
  2.   Controller handles request
  3.   Notifies model of changes
  4.   Controller selects a view
  5.   Await new user interaction

                 Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
Anatomy of a Request




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Anatomy of a Request

   HTTP Request
                                                Controller                 Model
  HTML Response         View


                                                                            Optional
                                                                           Persistent
                                                                            Storage




             Learn More @ http://www.learnnowonline.com
                  Copyright © by Application Developers Training Company
ASP.NET MVC




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
ASP.NET MVC
• Microsoft’s newest Web development framework




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
ASP.NET MVC
• Microsoft’s newest Web development framework
   Easy to implement design principles and patterns




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
ASP.NET MVC
• Microsoft’s newest Web development framework
   Easy to implement design principles and patterns
   Integral part of ASP.NET




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
ASP.NET MVC
• Microsoft’s newest Web development framework
   Easy to implement design principles and patterns
   Integral part of ASP.NET
• First implementation by Scott Guthrie




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
ASP.NET MVC
• Microsoft’s newest Web development framework
   Easy to implement design principles and patterns
   Integral part of ASP.NET
• First implementation by Scott Guthrie
• Built using core ASP.NET features




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Differences Between MVC and Web




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
   Rich infrastructure for Web version of desktop applications




                Learn More @ http://www.learnnowonline.com
                   Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
   Rich infrastructure for Web version of desktop applications
   Abstracts limitations of HTTP




                Learn More @ http://www.learnnowonline.com
                   Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
   Rich infrastructure for Web version of desktop applications
   Abstracts limitations of HTTP
   Uses ViewState as a major feature




                Learn More @ http://www.learnnowonline.com
                   Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
     Rich infrastructure for Web version of desktop applications
     Abstracts limitations of HTTP
     Uses ViewState as a major feature
     Drag and drop development interface




                  Learn More @ http://www.learnnowonline.com
                     Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
     Rich infrastructure for Web version of desktop applications
     Abstracts limitations of HTTP
     Uses ViewState as a major feature
     Drag and drop development interface
• Problems with Web forms




                  Learn More @ http://www.learnnowonline.com
                     Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
     Rich infrastructure for Web version of desktop applications
     Abstracts limitations of HTTP
     Uses ViewState as a major feature
     Drag and drop development interface
• Problems with Web forms
   Little control over HTML




                  Learn More @ http://www.learnnowonline.com
                     Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
     Rich infrastructure for Web version of desktop applications
     Abstracts limitations of HTTP
     Uses ViewState as a major feature
     Drag and drop development interface
• Problems with Web forms
   Little control over HTML
   ViewState can bloat




                  Learn More @ http://www.learnnowonline.com
                     Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
     Rich infrastructure for Web version of desktop applications
     Abstracts limitations of HTTP
     Uses ViewState as a major feature
     Drag and drop development interface
• Problems with Web forms
   Little control over HTML
   ViewState can bloat
   Limited support for testing



                  Learn More @ http://www.learnnowonline.com
                     Copyright © by Application Developers Training Company
Differences Between MVC and Web
• ASP.NET Web forms was revolutionary in its day
     Rich infrastructure for Web version of desktop applications
     Abstracts limitations of HTTP
     Uses ViewState as a major feature
     Drag and drop development interface
• Problems with Web forms
     Little control over HTML
     ViewState can bloat
     Limited support for testing
     Complicated page lifecycle


                  Learn More @ http://www.learnnowonline.com
                     Copyright © by Application Developers Training Company
The Tenets of MVC




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
The Tenets of MVC
• Separation of concerns




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
The Tenets of MVC
• Separation of concerns
• Convention over configuration




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
The Tenets of MVC
• Separation of concerns
• Convention over configuration
• Keep it DRY: Don’t Repeat Yourself




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
The Tenets of MVC
•   Separation of concerns
•   Convention over configuration
•   Keep it DRY: Don’t Repeat Yourself
•   Be helpful, but get out of my way




               Learn More @ http://www.learnnowonline.com
                  Copyright © by Application Developers Training Company
Web Forms vs. MVC                         Extensibility




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Web Forms vs. MVC                              Extensibility


• ASP.NET has a provider model




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC                             Extensibility


• ASP.NET has a provider model
• MVC has a more powerful pluggable model




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Web Forms vs. MVC                             Extensibility


• ASP.NET has a provider model
• MVC has a more powerful pluggable model
• Options




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Web Forms vs. MVC                               Extensibility


• ASP.NET has a provider model
• MVC has a more powerful pluggable model
• Options
   Use the default component




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC                               Extensibility


• ASP.NET has a provider model
• MVC has a more powerful pluggable model
• Options
   Use the default component
   Extend the default component




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC                               Extensibility


• ASP.NET has a provider model
• MVC has a more powerful pluggable model
• Options
   Use the default component
   Extend the default component
   Replace the default component




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Blending of Concerns




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC
Blending of Concerns
• Web forms almost forces combination of view
  and controller




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC
Blending of Concerns
• Web forms almost forces combination of view
  and controller
• False sense of separation from code behind files




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Blending of Concerns
• Web forms almost forces combination of view
  and controller
• False sense of separation from code behind files
   Reality: close coupling




               Learn More @ http://www.learnnowonline.com
                  Copyright © by Application Developers Training Company
Web Forms vs. MVC
Blending of Concerns
• Web forms almost forces combination of view
  and controller
• False sense of separation from code behind files
   Reality: close coupling
• MVC’s separation of concerns encourages good
  coding practices




               Learn More @ http://www.learnnowonline.com
                  Copyright © by Application Developers Training Company
Web Forms vs. MVC
Blending of Concerns
• Web forms almost forces combination of view
  and controller
• False sense of separation from code behind files
   Reality: close coupling
• MVC’s separation of concerns encourages good
  coding practices
   Ideally suited to Web application development




               Learn More @ http://www.learnnowonline.com
                  Copyright © by Application Developers Training Company
Web Forms vs. MVC
MVC Serves Methods, Not Files




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC
MVC Serves Methods, Not Files
• Huge difference




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC
MVC Serves Methods, Not Files
• Huge difference
• File request:
  http://www.example.com/index.aspx?ID=5




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC
MVC Serves Methods, Not Files
• Huge difference
• File request:
  http://www.example.com/index.aspx?ID=5
• Method request:
  http://www.example.com/Home/Details/5




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC
MVC Serves Methods, Not Files
• Huge difference
• File request:
  http://www.example.com/index.aspx?ID=5
• Method request:
  http://www.example.com/Home/Details/5
   Maps to Details action method




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
MVC Serves Methods, Not Files
• Huge difference
• File request:
  http://www.example.com/index.aspx?ID=5
• Method request:
  http://www.example.com/Home/Details/5
   Maps to Details action method
   Of Home controller




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
MVC Serves Methods, Not Files
• Huge difference
• File request:
  http://www.example.com/index.aspx?ID=5
• Method request:
  http://www.example.com/Home/Details/5
   Maps to Details action method
   Of Home controller
   Item ID of 5



              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Testability




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Testability
• Testing helps make applications more robust in
  the face of changes




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Testability
• Testing helps make applications more robust in
  the face of changes
• Unit test automates verification of a method




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Testability
• Testing helps make applications more robust in
  the face of changes
• Unit test automates verification of a method
• Can use the test-driven development
  methodology




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Testability
• Testing helps make applications more robust in
  the face of changes
• Unit test automates verification of a method
• Can use the test-driven development
  methodology
• Web forms make automated testing almost
  impossible




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Control over HTML




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Web Forms vs. MVC
Control over HTML
• Web forms server controls provide rich
  functionality




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Web Forms vs. MVC
Control over HTML
• Web forms server controls provide rich
  functionality
   Produce unreadable, monolithic blocks of HTML




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Control over HTML
• Web forms server controls provide rich
  functionality
   Produce unreadable, monolithic blocks of HTML
• MVC gives you complete control over HTML




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Open Source




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Open Source
• MVC source code is available




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Web Forms vs. MVC
Open Source
• MVC source code is available
• Liberal open source license: Microsoft Public
  License




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Building a Simple MVC Application




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Building a Simple MVC Application
• Building MVC applications can be efficient,
  because:




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Building a Simple MVC Application
• Building MVC applications can be efficient,
  because:
   Web forms often require fragmented code




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Building a Simple MVC Application
• Building MVC applications can be efficient,
  because:
   Web forms often require fragmented code
   MVC’s convention over configuration




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Building a Simple MVC Application
• Building MVC applications can be efficient,
  because:
   Web forms often require fragmented code
   MVC’s convention over configuration
   MVC tools in Visual Studio 2008 and 2010




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Building a Simple MVC Application
• Building MVC applications can be efficient,
  because:
   Web forms often require fragmented code
   MVC’s convention over configuration
   MVC tools in Visual Studio 2008 and 2010
• Best of all worlds with MVC




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
MVC Project Templates




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types
   Internet Application template




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types
   Internet Application template
     o   Basic but fully functional MVC application




                  Learn More @ http://www.learnnowonline.com
                      Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types
   Internet Application template
     o   Basic but fully functional MVC application
   Intranet Application template




                  Learn More @ http://www.learnnowonline.com
                      Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types
   Internet Application template
     o   Basic but fully functional MVC application
   Intranet Application template
     o   Same as Internet template, but uses Windows authentication




                  Learn More @ http://www.learnnowonline.com
                      Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types
   Internet Application template
     o   Basic but fully functional MVC application
   Intranet Application template
     o   Same as Internet template, but uses Windows authentication
   Empty template




                  Learn More @ http://www.learnnowonline.com
                      Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types
   Internet Application template
     o   Basic but fully functional MVC application
   Intranet Application template
     o   Same as Internet template, but uses Windows authentication
   Empty template
     o   Sets up project structure but no controllers or models




                  Learn More @ http://www.learnnowonline.com
                      Copyright © by Application Developers Training Company
MVC Project Templates
• Includes one Visual Studio Project template
   Available for VB and C#
• Includes templates for three project types
   Internet Application template
     o   Basic but fully functional MVC application
   Intranet Application template
     o   Same as Internet template, but uses Windows authentication
   Empty template
     o   Sets up project structure but no controllers or models
• Use whichever template you like

                  Learn More @ http://www.learnnowonline.com
                      Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3
• Can install MVC 3 side-by-side with MVC 1 and 2




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3
• Can install MVC 3 side-by-side with MVC 1 and 2
• When ready, upgrade to MVC 3




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3
• Can install MVC 3 side-by-side with MVC 1 and 2
• When ready, upgrade to MVC 3
• Process is manual




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3
• Can install MVC 3 side-by-side with MVC 1 and 2
• When ready, upgrade to MVC 3
• Process is manual
   Change a GUID, copy files, change web.config, etc.




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3
• Can install MVC 3 side-by-side with MVC 1 and 2
• When ready, upgrade to MVC 3
• Process is manual
   Change a GUID, copy files, change web.config, etc.
   Better to just create a new project and move stuff?




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3
• Can install MVC 3 side-by-side with MVC 1 and 2
• When ready, upgrade to MVC 3
• Process is manual
   Change a GUID, copy files, change web.config, etc.
   Better to just create a new project and move stuff?
   Release notes cover the basic steps




              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Upgrading from MVC 2 to 3
• Can install MVC 3 side-by-side with MVC 1 and 2
• When ready, upgrade to MVC 3
• Process is manual
   Change a GUID, copy files, change web.config, etc.
   Better to just create a new project and move stuff?
   Release notes cover the basic steps
• Microsoft’s Eilon Lipton has an unsupported
  migration tool


              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Learn More!




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!


• Learn more about MVC on SlideShare:




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!


• Learn more about MVC on SlideShare:
  • Working with Controllers and Actions in MVC




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company

Introduction to ASP.NET MVC

  • 1.
    Introduction to ASP.NET MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 2.
    Objectives Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 3.
    Objectives • Understand thebasics of the Model-View- Controller pattern Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 4.
    Objectives • Understand thebasics of the Model-View- Controller pattern • Explore the differences between ASP.NET Web forms and MVC applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 5.
    Objectives • Understand thebasics of the Model-View- Controller pattern • Explore the differences between ASP.NET Web forms and MVC applications • Build a sample MVC application and explore its structure Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 6.
    Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 7.
    Agenda • The Model-View-ControllerPattern Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 8.
    Agenda • The Model-View-ControllerPattern • Differences Between MVC and Web Forms Applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 9.
    Agenda • The Model-View-ControllerPattern • Differences Between MVC and Web Forms Applications • Building a Simple MVC Application with Visual Studio Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 10.
    The Model-View-Controller Pattern Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 11.
    The Model-View-Controller Pattern •ASP.NET MVC is a revolutionary way to develop Web applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 12.
    The Model-View-Controller Pattern •ASP.NET MVC is a revolutionary way to develop Web applications  Built on Model-View-Controller pattern Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 13.
    The Model-View-Controller Pattern •ASP.NET MVC is a revolutionary way to develop Web applications  Built on Model-View-Controller pattern  Separation of concerns Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 14.
    The Model-View-Controller Pattern •ASP.NET MVC is a revolutionary way to develop Web applications  Built on Model-View-Controller pattern  Separation of concerns  Invented in 1978 by Trygve Reenskaug Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 15.
    The Model-View-Controller Pattern •ASP.NET MVC is a revolutionary way to develop Web applications  Built on Model-View-Controller pattern  Separation of concerns  Invented in 1978 by Trygve Reenskaug  Very popular in Web development frameworks Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 16.
    The MVC Architecture Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 17.
    The MVC Architecture •Three primary components Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 18.
    The MVC Architecture •Three primary components  Model Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 19.
    The MVC Architecture •Three primary components  Model  View Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 20.
    The MVC Architecture •Three primary components  Model  View  Controller Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 21.
    The MVC Architecture •Three primary components  Model  View  Controller • User interaction with application Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 22.
    The MVC Architecture •Three primary components  Model  View  Controller • User interaction with application 1. Interacts with Web page Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 23.
    The MVC Architecture •Three primary components  Model  View  Controller • User interaction with application 1. Interacts with Web page 2. Controller handles request Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 24.
    The MVC Architecture •Three primary components  Model  View  Controller • User interaction with application 1. Interacts with Web page 2. Controller handles request 3. Notifies model of changes Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 25.
    The MVC Architecture •Three primary components  Model  View  Controller • User interaction with application 1. Interacts with Web page 2. Controller handles request 3. Notifies model of changes 4. Controller selects a view Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 26.
    The MVC Architecture •Three primary components  Model  View  Controller • User interaction with application 1. Interacts with Web page 2. Controller handles request 3. Notifies model of changes 4. Controller selects a view 5. Await new user interaction Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 27.
    Anatomy of aRequest Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 28.
    Anatomy of aRequest HTTP Request Controller Model HTML Response View Optional Persistent Storage Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 29.
    ASP.NET MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 30.
    ASP.NET MVC • Microsoft’snewest Web development framework Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 31.
    ASP.NET MVC • Microsoft’snewest Web development framework  Easy to implement design principles and patterns Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 32.
    ASP.NET MVC • Microsoft’snewest Web development framework  Easy to implement design principles and patterns  Integral part of ASP.NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 33.
    ASP.NET MVC • Microsoft’snewest Web development framework  Easy to implement design principles and patterns  Integral part of ASP.NET • First implementation by Scott Guthrie Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 34.
    ASP.NET MVC • Microsoft’snewest Web development framework  Easy to implement design principles and patterns  Integral part of ASP.NET • First implementation by Scott Guthrie • Built using core ASP.NET features Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 35.
    Differences Between MVCand Web Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 36.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 37.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 38.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 39.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP  Uses ViewState as a major feature Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 40.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP  Uses ViewState as a major feature  Drag and drop development interface Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 41.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP  Uses ViewState as a major feature  Drag and drop development interface • Problems with Web forms Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 42.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP  Uses ViewState as a major feature  Drag and drop development interface • Problems with Web forms  Little control over HTML Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 43.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP  Uses ViewState as a major feature  Drag and drop development interface • Problems with Web forms  Little control over HTML  ViewState can bloat Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 44.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP  Uses ViewState as a major feature  Drag and drop development interface • Problems with Web forms  Little control over HTML  ViewState can bloat  Limited support for testing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 45.
    Differences Between MVCand Web • ASP.NET Web forms was revolutionary in its day  Rich infrastructure for Web version of desktop applications  Abstracts limitations of HTTP  Uses ViewState as a major feature  Drag and drop development interface • Problems with Web forms  Little control over HTML  ViewState can bloat  Limited support for testing  Complicated page lifecycle Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 46.
    The Tenets ofMVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 47.
    The Tenets ofMVC • Separation of concerns Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 48.
    The Tenets ofMVC • Separation of concerns • Convention over configuration Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 49.
    The Tenets ofMVC • Separation of concerns • Convention over configuration • Keep it DRY: Don’t Repeat Yourself Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 50.
    The Tenets ofMVC • Separation of concerns • Convention over configuration • Keep it DRY: Don’t Repeat Yourself • Be helpful, but get out of my way Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 51.
    Web Forms vs.MVC Extensibility Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 52.
    Web Forms vs.MVC Extensibility • ASP.NET has a provider model Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 53.
    Web Forms vs.MVC Extensibility • ASP.NET has a provider model • MVC has a more powerful pluggable model Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 54.
    Web Forms vs.MVC Extensibility • ASP.NET has a provider model • MVC has a more powerful pluggable model • Options Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 55.
    Web Forms vs.MVC Extensibility • ASP.NET has a provider model • MVC has a more powerful pluggable model • Options  Use the default component Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 56.
    Web Forms vs.MVC Extensibility • ASP.NET has a provider model • MVC has a more powerful pluggable model • Options  Use the default component  Extend the default component Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 57.
    Web Forms vs.MVC Extensibility • ASP.NET has a provider model • MVC has a more powerful pluggable model • Options  Use the default component  Extend the default component  Replace the default component Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 58.
    Web Forms vs.MVC Blending of Concerns Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 59.
    Web Forms vs.MVC Blending of Concerns • Web forms almost forces combination of view and controller Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 60.
    Web Forms vs.MVC Blending of Concerns • Web forms almost forces combination of view and controller • False sense of separation from code behind files Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 61.
    Web Forms vs.MVC Blending of Concerns • Web forms almost forces combination of view and controller • False sense of separation from code behind files  Reality: close coupling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 62.
    Web Forms vs.MVC Blending of Concerns • Web forms almost forces combination of view and controller • False sense of separation from code behind files  Reality: close coupling • MVC’s separation of concerns encourages good coding practices Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 63.
    Web Forms vs.MVC Blending of Concerns • Web forms almost forces combination of view and controller • False sense of separation from code behind files  Reality: close coupling • MVC’s separation of concerns encourages good coding practices  Ideally suited to Web application development Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 64.
    Web Forms vs.MVC MVC Serves Methods, Not Files Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 65.
    Web Forms vs.MVC MVC Serves Methods, Not Files • Huge difference Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 66.
    Web Forms vs.MVC MVC Serves Methods, Not Files • Huge difference • File request: http://www.example.com/index.aspx?ID=5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 67.
    Web Forms vs.MVC MVC Serves Methods, Not Files • Huge difference • File request: http://www.example.com/index.aspx?ID=5 • Method request: http://www.example.com/Home/Details/5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 68.
    Web Forms vs.MVC MVC Serves Methods, Not Files • Huge difference • File request: http://www.example.com/index.aspx?ID=5 • Method request: http://www.example.com/Home/Details/5  Maps to Details action method Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 69.
    Web Forms vs.MVC MVC Serves Methods, Not Files • Huge difference • File request: http://www.example.com/index.aspx?ID=5 • Method request: http://www.example.com/Home/Details/5  Maps to Details action method  Of Home controller Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 70.
    Web Forms vs.MVC MVC Serves Methods, Not Files • Huge difference • File request: http://www.example.com/index.aspx?ID=5 • Method request: http://www.example.com/Home/Details/5  Maps to Details action method  Of Home controller  Item ID of 5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 71.
    Web Forms vs.MVC Testability Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 72.
    Web Forms vs.MVC Testability • Testing helps make applications more robust in the face of changes Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 73.
    Web Forms vs.MVC Testability • Testing helps make applications more robust in the face of changes • Unit test automates verification of a method Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 74.
    Web Forms vs.MVC Testability • Testing helps make applications more robust in the face of changes • Unit test automates verification of a method • Can use the test-driven development methodology Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 75.
    Web Forms vs.MVC Testability • Testing helps make applications more robust in the face of changes • Unit test automates verification of a method • Can use the test-driven development methodology • Web forms make automated testing almost impossible Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 76.
    Web Forms vs.MVC Control over HTML Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 77.
    Web Forms vs.MVC Control over HTML • Web forms server controls provide rich functionality Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 78.
    Web Forms vs.MVC Control over HTML • Web forms server controls provide rich functionality  Produce unreadable, monolithic blocks of HTML Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 79.
    Web Forms vs.MVC Control over HTML • Web forms server controls provide rich functionality  Produce unreadable, monolithic blocks of HTML • MVC gives you complete control over HTML Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 80.
    Web Forms vs.MVC Open Source Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 81.
    Web Forms vs.MVC Open Source • MVC source code is available Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 82.
    Web Forms vs.MVC Open Source • MVC source code is available • Liberal open source license: Microsoft Public License Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 83.
    Building a SimpleMVC Application Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 84.
    Building a SimpleMVC Application • Building MVC applications can be efficient, because: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 85.
    Building a SimpleMVC Application • Building MVC applications can be efficient, because:  Web forms often require fragmented code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 86.
    Building a SimpleMVC Application • Building MVC applications can be efficient, because:  Web forms often require fragmented code  MVC’s convention over configuration Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 87.
    Building a SimpleMVC Application • Building MVC applications can be efficient, because:  Web forms often require fragmented code  MVC’s convention over configuration  MVC tools in Visual Studio 2008 and 2010 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 88.
    Building a SimpleMVC Application • Building MVC applications can be efficient, because:  Web forms often require fragmented code  MVC’s convention over configuration  MVC tools in Visual Studio 2008 and 2010 • Best of all worlds with MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 89.
    MVC Project Templates Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 90.
    MVC Project Templates •Includes one Visual Studio Project template Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 91.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 92.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 93.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types  Internet Application template Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 94.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types  Internet Application template o Basic but fully functional MVC application Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 95.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types  Internet Application template o Basic but fully functional MVC application  Intranet Application template Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 96.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types  Internet Application template o Basic but fully functional MVC application  Intranet Application template o Same as Internet template, but uses Windows authentication Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 97.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types  Internet Application template o Basic but fully functional MVC application  Intranet Application template o Same as Internet template, but uses Windows authentication  Empty template Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 98.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types  Internet Application template o Basic but fully functional MVC application  Intranet Application template o Same as Internet template, but uses Windows authentication  Empty template o Sets up project structure but no controllers or models Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 99.
    MVC Project Templates •Includes one Visual Studio Project template  Available for VB and C# • Includes templates for three project types  Internet Application template o Basic but fully functional MVC application  Intranet Application template o Same as Internet template, but uses Windows authentication  Empty template o Sets up project structure but no controllers or models • Use whichever template you like Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 100.
    Upgrading from MVC2 to 3 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 101.
    Upgrading from MVC2 to 3 • Can install MVC 3 side-by-side with MVC 1 and 2 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 102.
    Upgrading from MVC2 to 3 • Can install MVC 3 side-by-side with MVC 1 and 2 • When ready, upgrade to MVC 3 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 103.
    Upgrading from MVC2 to 3 • Can install MVC 3 side-by-side with MVC 1 and 2 • When ready, upgrade to MVC 3 • Process is manual Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 104.
    Upgrading from MVC2 to 3 • Can install MVC 3 side-by-side with MVC 1 and 2 • When ready, upgrade to MVC 3 • Process is manual  Change a GUID, copy files, change web.config, etc. Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 105.
    Upgrading from MVC2 to 3 • Can install MVC 3 side-by-side with MVC 1 and 2 • When ready, upgrade to MVC 3 • Process is manual  Change a GUID, copy files, change web.config, etc.  Better to just create a new project and move stuff? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 106.
    Upgrading from MVC2 to 3 • Can install MVC 3 side-by-side with MVC 1 and 2 • When ready, upgrade to MVC 3 • Process is manual  Change a GUID, copy files, change web.config, etc.  Better to just create a new project and move stuff?  Release notes cover the basic steps Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 107.
    Upgrading from MVC2 to 3 • Can install MVC 3 side-by-side with MVC 1 and 2 • When ready, upgrade to MVC 3 • Process is manual  Change a GUID, copy files, change web.config, etc.  Better to just create a new project and move stuff?  Release notes cover the basic steps • Microsoft’s Eilon Lipton has an unsupported migration tool Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 108.
    Learn More! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 109.
    Learn More! • Thisis an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 110.
    Learn More! • Thisis an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 111.
    Learn More! • Thisis an excerpt from a larger course. Visit www.learnnowonline.com for the full details! • Learn more about MVC on SlideShare: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 112.
    Learn More! • Thisis an excerpt from a larger course. Visit www.learnnowonline.com for the full details! • Learn more about MVC on SlideShare: • Working with Controllers and Actions in MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company

Editor's Notes