20

ASP.NET Web Forms vs. MVC

Embed Size (px)

Citation preview

Page 1: ASP.NET Web Forms vs. MVC
Page 2: ASP.NET Web Forms vs. MVC

ASP.NET Web Forms vs. MVC Choosing the right one for web

development

Harish RanganathanSenior EvangelistMicrosoft Corporation

Page 3: ASP.NET Web Forms vs. MVC

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

Page 4: ASP.NET Web Forms vs. MVC

New in SP1 for Web Developers

IIS Express for Visual Studio 2010

SQL Compact Edition Tooling support

Support for HTML5 tags

Web Deployment Tool 2.0

Page 5: ASP.NET Web Forms vs. MVC

Visual Studio 2010 SP1 for Web Developers

demo

Page 6: ASP.NET Web Forms vs. MVC

ASP.NET 4 Web Forms

Easier to start, develop & deploy

Routing and Search Engine Optimization

Productivity and extensibility

Better Client Handling capabilities

Page 7: ASP.NET Web Forms vs. MVC

ASP.NET 4 Web Formsdemo

Page 8: ASP.NET Web Forms vs. MVC

ASP.NET MVC 3

Clear separation of concerns

Friendlier URLs

Patterns & Repositories

Cleaner HTML

Page 9: ASP.NET Web Forms vs. MVC

ASP.NET MVC 3demo

Page 10: ASP.NET Web Forms vs. MVC

Visual Studio 2010

.NET 4

Web Forms MVC

ASP.NET

Authentication Membership Data Providers

Page 11: ASP.NET Web Forms vs. MVC

Web Forms + MVC

Ease of adoption in existing projects

Pages where finer markup control is needed

No from the scratch work

Best of both worlds

Page 12: ASP.NET Web Forms vs. MVC

Web Forms + MVCdemo

Page 13: ASP.NET Web Forms vs. MVC

Scenarios for Web Forms

Familiarity with Client Development

Lots of abstraction, automation

SharePoint runs on Web Forms

Mark up, Scripts, Browser differences handled

Page 14: ASP.NET Web Forms vs. MVC

Scenarios for MVC

Familiar for Web Developers

Finer control over mark up

Designed for patterns/respositories

Designed for friendly URLs

Page 15: ASP.NET Web Forms vs. MVC

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.

Page 16: ASP.NET Web Forms vs. MVC

Related Sessions

What’s new in MVC 3 “Nerd Dinner” - Today

MVC 3 Deep Dive – 25th March

jQuery and AJAX Control Toolkit - Today

Page 17: ASP.NET Web Forms vs. MVC

Resources

• http://geekswithblogs.net/ranganh

• Twitter: @ranganh

Page 18: ASP.NET Web Forms vs. MVC

Announcement

Please fill out the feedback form

Page 19: ASP.NET Web Forms vs. MVC

ResourcesSoftware Application

Developers

http://msdn.microsoft.com/

Infrastructure Professionals

http://technet.microsoft.com/

msdnindia technetindia @msdnindia @technetindia

Page 20: ASP.NET Web Forms vs. MVC

© 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.