ASP.NET Webforms, MVC or Webapi?

Asked

Viewed 691 times

3

First I would like to point out that my knowledge in web development is very small, so my question will be directed on what to use and not how to use, because the goal is to study first and then develop.

I need to create a web application for opening calls, the client should see a simple page where will describe questions, complaints, etc. and on the same page can attach documents, images, etc.

This same application should contain a chat, so that customers can communicate directly with the support staff and get more clarification about the calls already opened.

When creating a new web project in Visual Studio 2013, I came across templates (Web Forms, MVC and WEB API, among others). I would like to get from you a direction, like, where should I start studying to sketch an application as mentioned above.

Below are some criteria I think it important to mention for the possible decision of what to use:

  • I need to use ASP.NET, C# and Visual Studio 2013.
  • I already have an SQL Server database (currently used for the desktop application) that contains all the information that will be used.
  • In the database that I already have, I already have a table with users and passwords that they should use to log in.

Note: My intention is to know of you who already develop for the web, what to use and where to start, focused on studying to get knowledge to start the project.

  • 2

    for those who are starting use ASP.NET MVC initially later learn Webapi. Webforms will no longer receive updates only worth learning if you will work in companies that use legacy system in this technology , for your case mvc meets everything you want.

  • 1

    Well, Web Forms and MVC are site development standards. In this case I suggest you use the MVC, for Web Forms is obsolete today for new projects. Already Webapi is a framework for service development Rest. These are different things.. as @Eduardosampaio commented, first study and understand the MVC then go to Web Api

  • Thanks @Eduardosampaio, I will start my studies in MVC, if you have any online course or book to indicate, I thank you!

  • Thank you @Ricardopontual

  • I learned a lot on the Cleyton channel Ferrari https://www.youtube.com/watch?v=VbA_JZJtKaY

  • 1

    Run away from video lessons unless it’s something official or someone with strong recognition in the community (almost nobody does). This occurs with other types of material, but some have a larger filter. Any class video can do. And run away more + from old things (+ disturbs that helps). Unfortunately it is a drama to find good material p/ study. Everyone thinks they have and those who do think they have done something good. The reality is quite different. This is because of https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect. You can start here: https://answall.com/tags/asp.net-mvc/info

  • Thanks @bigown

  • @Paulobalbino Has the answer solved what was in doubt? Do you need something else to be improved? Do you think it is possible to accept it now?

Show 3 more comments

1 answer

5

It is a shame to know that it is restricted to Visual Studio 2013. If it is cost, it has free versions of modern VS and almost sompleto.

Webforms is a technology considered almost legacy and weird. Some people find it easier, but it has little space in the current web scene. Don’t rule him out, but he’s got plenty of reasons not to start something new with him, and I don’t even know if in his case there’s one to use.

Since you can not use ASP.NET Core which is the most modern and it seems to me that it interests to make a complete application and not just an API, the path seems to be ASP.NET MVC.

If you need to provide an API for other programmers to communicate with your system directly without user interaction directly with your system, then you will need to use the ASP.NET Webapi as well (in ASP.NET Core it is one thing only).

More recently some people are choosing to do as much as possible on the client, make the calls Single Page Application, often with Angularjs. There you will most likely only use the ASP.NET Webapi since the MVC is used for the server to generate the pages on demand. With the use of SPA the client loads a single page and will request only data from the server.

The information to make the decision is there. Which is the most suitable for you only you yourself can answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.