Introduction to ASP.NET MVC

1,307 views
1,232 views

Published on

Understand the basics of the Model-View-Controller pattern and explore the differences between ASP.NET Web forms and MVC applications.

Published in: Technology
0 Comments
9 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,307
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
0
Comments
0
Likes
9
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of chapter to upgrading section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • DEMO: rest of section\n
  • Introduction to ASP.NET MVC

    1. 1. Introduction toASP.NET MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    2. 2. Objectives Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    3. 3. Objectives• Understand the basics of the Model-View- Controller pattern Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    4. 4. 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
    5. 5. 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
    6. 6. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    7. 7. Agenda• The Model-View-Controller Pattern Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    8. 8. 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
    9. 9. 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
    10. 10. The Model-View-Controller Pattern Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    11. 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. 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. 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. 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. 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. 16. The MVC Architecture Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    17. 17. The MVC Architecture• Three primary components Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    18. 18. The MVC Architecture• Three primary components  Model Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    19. 19. The MVC Architecture• Three primary components  Model  View Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    20. 20. The MVC Architecture• Three primary components  Model  View  Controller Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    21. 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. 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. 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. 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. 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. 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. 27. Anatomy of a Request Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    28. 28. 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
    29. 29. ASP.NET MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    30. 30. ASP.NET MVC• Microsoft’s newest Web development framework Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    31. 31. 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
    32. 32. 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
    33. 33. 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
    34. 34. 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
    35. 35. Differences Between MVC and Web Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    36. 36. 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
    37. 37. 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
    38. 38. 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
    39. 39. 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
    40. 40. 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
    41. 41. 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
    42. 42. 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
    43. 43. 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
    44. 44. 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
    45. 45. 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
    46. 46. The Tenets of MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    47. 47. The Tenets of MVC• Separation of concerns Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    48. 48. The Tenets of MVC• Separation of concerns• Convention over configuration Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    49. 49. 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
    50. 50. 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
    51. 51. Web Forms vs. MVC Extensibility Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    52. 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. 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. 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. 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. 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. 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. 58. Web Forms vs. MVCBlending of Concerns Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    59. 59. Web Forms vs. MVCBlending of Concerns• Web forms almost forces combination of view and controller Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    60. 60. Web Forms vs. MVCBlending 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. 61. Web Forms vs. MVCBlending 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. 62. Web Forms vs. MVCBlending 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. 63. Web Forms vs. MVCBlending 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. 64. Web Forms vs. MVCMVC Serves Methods, Not Files Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    65. 65. Web Forms vs. MVCMVC Serves Methods, Not Files• Huge difference Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    66. 66. Web Forms vs. MVCMVC 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. 67. Web Forms vs. MVCMVC 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. 68. Web Forms vs. MVCMVC 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. 69. Web Forms vs. MVCMVC 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. 70. Web Forms vs. MVCMVC 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. 71. Web Forms vs. MVCTestability Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    72. 72. Web Forms vs. MVCTestability• Testing helps make applications more robust in the face of changes Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    73. 73. Web Forms vs. MVCTestability• 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. 74. Web Forms vs. MVCTestability• 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. 75. Web Forms vs. MVCTestability• 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. 76. Web Forms vs. MVCControl over HTML Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    77. 77. Web Forms vs. MVCControl over HTML• Web forms server controls provide rich functionality Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    78. 78. Web Forms vs. MVCControl 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. 79. Web Forms vs. MVCControl 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. 80. Web Forms vs. MVCOpen Source Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    81. 81. Web Forms vs. MVCOpen Source• MVC source code is available Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    82. 82. Web Forms vs. MVCOpen 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. 83. Building a Simple MVC Application Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    84. 84. Building a Simple MVC Application• Building MVC applications can be efficient, because: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    85. 85. 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
    86. 86. 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
    87. 87. 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
    88. 88. 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
    89. 89. MVC Project Templates Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    90. 90. MVC Project Templates• Includes one Visual Studio Project template Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    91. 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. 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. 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. 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. 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. 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. 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. 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. 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. 100. Upgrading from MVC 2 to 3 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    101. 101. 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
    102. 102. 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
    103. 103. 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
    104. 104. 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
    105. 105. 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
    106. 106. 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
    107. 107. 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
    108. 108. Learn More! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
    109. 109. 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
    110. 110. 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
    111. 111. 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
    112. 112. 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

    ×