Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confusion on using asp.net or mvc

Ive been confused about ASP.NET MVC.

As some said, MVC is better than ASP.NET. As some said, they are completely the same thing. And my colleges debate that MVC is just an extension of asp.net, where asp.net is already in the form of MVC.

In fact I am starting web developing from scratch. If someone might help to clear the fog front of me, it would help a lot.

like image 240
kitw Avatar asked Dec 19 '12 02:12

kitw


1 Answers

All ASP.NET web frameworks are build on top of Microsoft ASP.NET Framework. The unique feature of Web API is that it can be used with both MVC and WebForms applications to provide truly restful HTTP services.

Regarding the choice of suitable Asp.NET framework: you may get more information from official source - www.asp.net.

enter image description here

General rule of thumb is the architectural design how you want to build your application.

ASP.NET MVC promotes a cleaner separation which makes the developer think more in depth about design and code separation than traditional web forms.

There are endless debates about what is better but true benefits of ASP.NET MVC as

  1. testability
  2. more control over the rendered HTML
  3. separation of concerns. However with MVC there is much more to learn for the developer.

ASP.NET WebForms - will always be around because some see it as a rapid application development tool. Just drag and drop and let ASP.NET handle the posting, state etc

ASP.NET Web API - is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.

All in all, each of them has certain business solutions to be considered as required.

References to look for comparison:

  • ASP.NET MVC vs WebForms: speed and architecture comparison
  • ASP.NET Roadmap: One ASP.NET – Web Forms, MVC, Web API, and more
like image 141
Yusubov Avatar answered Nov 14 '22 14:11

Yusubov