Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Moving from ASP.NET Web Forms to ASP.NET MVC

  • Login to see the comments

  • Be the first to like this

Moving from ASP.NET Web Forms to ASP.NET MVC

  1. 1. Kim
  2. 2. Provides: Familiar control and event based programming model Rich controls that encapsulate HTML, CSS & Javascript Availability of many rich controls Browser differences handled for you SharePoint builds on Web Forms
  3. 3. The MVC pattern was invented in the 70s as part of Smalltalk.MVC divides your UI into three distinct objects: the controller, which receives and handles input; the model, which contains your domain logic; and the view, which generates your output.
  4. 4. Provides: A "separation of concerns” Significant control over rendered HTML Supports Unit Testing, TDD and Agile methodologies Encourages the use of design patterns by convention Encourages more prescriptive applications Extremely flexible and extensible
  5. 5. By Nick Berardi
  6. 6. By Vaibhav Jain
  7. 7. TimeChallenges/Priorities
  8. 8. “Many companies have a huge investment in WebForms technology that they just simply arent going tothrow out - training, third party controls, experienceand so on. ““Many companies dont buy into the whole Unit Testpitch behind MVC. Many companies simply dont testat all.” Quotes from Mike Brind
  9. 9. Quotes from Scott Guthrie’s blog onAbout Technical Debates (and ASP.NETWeb Forms and ASP.NET MVC debates inparticular)
  10. 10. AuthenticationAuthorizationUser MembershipRole SecurityOutput CachingSession StateConfigurationDeploymentAjaxothers...
  11. 11. Conversion ProjectSide-By-Side – Preexisting Web Forms appSide-By-Side – New MVC app
  12. 12.
  13. 13.
  14. 14. Why?Keeping rich functionality of some desired servercontrols – such as the Report Viewer
  15. 15. Root.master<%@ Master Inherits="System.Web.UI.MasterPage" … %>MVC.master<%@ Master MasterPageFile="~/Views/Shared/Root.Master" Inherits="System.Web.Mvc.ViewMasterPage" … %>WebForm.master<%@ Master MasterPageFile="~/Views/Shared/Root.Master" Inherits="NorthwindSales.Views.Shared.Webform" %>Code behind:public partial class Webform : System.Web.UI.MasterPage {}
  16. 16. So back to the question…Is it really worth moving from ASP.NETWebForms to ASP.NET MVC?It depends
  17. 17. Comparison Sites: from Web Forms to MVC: ASP.NET MVC in Action (1-4) Programming Microsoft ASP.NET MVC Programming Microsoft ASP.NET 4