Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC or WebForms?

Tags:

asp.net

I'm very new to web development, have many years background on the desktop, but nothing on web, only html. I want to make a simple dynamic webpage for a product I've been working on by myself, but I don't know which of the two, MVC or WebForms, would be easier for me.

The lessons at asp.net didn't help me much, I took the "first step" tutorials for both MVC and WebForms, but I still don't see any significant difference.

What I ask for is an examplanation for a person, who's not professional at web development, or better yet, for a desktop programmer.

like image 243
qwerty101 Avatar asked Aug 26 '10 15:08

qwerty101


People also ask

Which is better Web Forms or MVC?

More Control-The ASP.NET MVC framework provides more control over the HTML , JavaScript and CSS than the traditional Web Forms. Testability-ASP.NET MVC framework provides better testability of the Web Application and good support for the test driven development too.

Is ASP.NET Web Forms dead?

Does this mean ASP.NET Web Forms is dead and should no longer be used? Of course not! As long as the . NET Framework ships as part of Windows, ASP.NET Web Forms will be a supported framework.

Is MVC faster than Web Forms?

Show activity on this post. My completely unscientific opinion: Yes; ASP.NET MVC is faster than web forms. ASP.NET MVC gives screen pops on the order of 1 to 2 seconds. Web forms is more like 3 to 5 seconds.

Is ASP.NET MVC outdated?

Is the framework outdated? ASP.NET MVC is no longer in active development. The last version update was in November 2018. Despite this, a lot of projects are using ASP.NET MVC for web solution development.


2 Answers

If you're used to the desktop, and WinForms or WPF in particular, go with webforms to more easily grok what's going on. The server controls will appear to keep their state, and it'll more a more natural progression. You'll find that the server controls do a lot of work for you, and you should be able to spin up an application using the knowledge from the WinForms world.

like image 194
p.campbell Avatar answered Oct 20 '22 15:10

p.campbell


If you're used with desktop programming paradigms winforms should be a lot easier to learn.

If you want to go more into web-programming "as it should be" I'd personally advice you to learn MVC (anyway this is my personal opinion ;) ).

like image 26
mamoo Avatar answered Oct 20 '22 17:10

mamoo