200 likes | 426 Views
ASP.NET Web Forms vs. MVC Choosing the right one for web development. Harish Ranganathan Senior Evangelist Microsoft Corporation. Agenda. Quick look into Visual Studio 2010 SP1 ASP.NET 4 Web Forms MVC 3 with Razor Using Web Forms and MVC together Scenarios for usage.
E N D
ASP.NET Web Forms vs. MVC Choosing the right one for web development Harish Ranganathan Senior Evangelist Microsoft Corporation
Agenda • Quick look into Visual Studio 2010 SP1 • ASP.NET 4 Web Forms • MVC 3 with Razor • Using Web Forms and MVC together • Scenarios for usage
New in SP1 for Web Developers IIS Express for Visual Studio 2010 SQL Compact Edition Tooling support Web Deployment Tool 2.0 Support for HTML5 tags
demo Visual Studio 2010 SP1 for Web Developers
ASP.NET 4 Web Forms Easier to start, develop & deploy Routing and Search Engine Optimization Better Client Handling capabilities Productivity and extensibility
demo ASP.NET 4 Web Forms
ASP.NET MVC 3 Clear separation of concerns Friendlier URLs Cleaner HTML Patterns & Repositories
demo ASP.NET MVC 3
Visual Studio 2010 .NET 4 MVC Web Forms Authentication Membership Data Providers ASP.NET
Web Forms + MVC Ease of adoption in existing projects Pages where finer markup control is needed Best of both worlds No from the scratch work
demo Web Forms + MVC
Scenarios for Web Forms Familiarity with Client Development Lots of abstraction, automation Mark up, Scripts, Browser differences handled SharePoint runs on Web Forms
Scenarios for MVC Familiar for Web Developers Finer control over mark up Designed for friendly URLs Designed for patterns/respositories
Summary • Download visual Studio 2010 SP1 • Use IIS Express / SQL CE as applicable for Development • Both Web Forms & MVC continue to exist! • Not one size fits all • Where cleaner markup / finer control => MVC • Where rapid development => Web Forms • Web Forms and MVC can be used together • Choice is always good • And, there’s lots more, also not covered here.
Related Sessions What’s new in MVC 3 “Nerd Dinner” - Today MVC 3 Deep Dive – 25th March jQuery and AJAX Control Toolkit - Today
Resources • http://geekswithblogs.net/ranganh • Twitter: @ranganh
Announcement Please fill out the feedback form
Resources Software Application Developers Infrastructure Professionals http://technet.microsoft.com/ http://msdn.microsoft.com/ technetindia msdnindia @technetindia @msdnindia
© 2011 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.