Post on 24-Dec-2015
Choosing Between ASP.NET Web Forms & MVC
Rachel Appelhttp://rachelappel.comrachel@rachelappel.com
Introduction
Watch this presentation if…You need facts to decide between MVC and web forms
This presentation is about…Web forms/MVC compare and contrastHelping you decide what to use per project
This presentation is not about…Telling you what to doA religious technical stance
Agenda
Web user interfacesWeb presentation patternsWeb forms overviewMVC overviewShared ASP.NET featuresMaking the choiceWeb forms and ASP.NET MVC resources
Web Presentation Patterns
MVCRuby on RailsWebobjects for JavaASP.NET MVCMonoRailOthers…
Web formsOther patterns
MVPMVVM
Web Forms
Tooling/designerPostbacksEvent drivenHTML forms and viewstateControls abstraction3rd party component modelRapid developmentDeclarative syntax
ASP.NET MVC
Full control over markupLightweight views/no CodebehindSeparation of concerns Testing/TDDPluggable view enginesRESTfulNo postbacks No viewstate
Shared ASP.NET Features
RoutingCachingProfile and membershipSession and application managementConfigurationForms authenticationAJAX and jQueryLocalizationMaster and content pages
Considerations When Making Your Choice
CONTROL
ASP.NET•Services•Caching•Routing•Localization•…
ASP.NET WebForms•Control Ecosystem•Automatic State •Management•Design-time Support
ASP.NET MVC•Do It Yourself•Promotes SOC•Easier to use TDD•Total Extensibility
EFFORT
Considerations When Making Your Choice
Personal choiceInternet versus intranetControl over markupFamiliarity with patternsGradual progressionRAD controlsThey can be used together!
Resources
http://www.asp.net http://www.mostlylucid.comhttp://www.haacked.com/http://weblogs.asp.net/scottgu/ http://www.stephenwalther.com/blog/ http://msdn.microsoft.com/en-us/asp.net/default.aspx http://www.codeplex.com/aspnethttp://www.hanselman.com http://www.joeon.net
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.