Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET WebForms vs MVC [after VS2010/.NET 4.0 announcement]

Two of the biggest advantages of MVC over webforms were non-existent viewstate and URL routing. VS2010 and .NET 4.0 incorporates built-in URL routing for Webforms as well as better control for viewstate.

I advocate use of MVC for extranet sites due to the MVC design pattern and its general lightweight nature but in light of this new announcement has Webforms closed the gap? Why would you still pick MVC over Webforms?

Thanks

like image 764
fjxx Avatar asked Oct 15 '22 06:10

fjxx


1 Answers

You're forgetting about 2 main advantages of MVC: better control over generated HTML and better support for test-driven development.

I'd say that normally implementing a site using ASP.NET WebForms would require less effort that implementing exactly the same with MVC.

MVC gives you more control, but it also requires more expertise and effort.

like image 113
Claudio Redi Avatar answered Oct 19 '22 18:10

Claudio Redi