Why would you use MVC over Web Forms?
What is the difference between ASP.Net MVC and Web Forms? Is either preferable? I want to use ASP.Net development as a springboard to teach myself C#. What is the best way to go about this?
|show 1 more comment|
They are two different approaches to creating a web application. Web forms mirror how desktop application are created in visual studio, each page is its own self contained unit. In MVC pages are divided up into models views and controllers, controllers handle signals/events and tell models/views what to do, models handle the data, and the view is the display. each part of the MVC architecture can communicate with the others, and they are designed to be inter changeable so controller A and controller B could both work just fine with Model A.
Right now both are well supported and in common use, MVC is newer to .Net though so webforms is still more common in the industry, but both are good ways to learn. they are completely different though and it is non trivial to switch a project between the two.