New for ASP.NET: Webforms vs MVC2

I am new to ASP.NET Development and canโ€™t decide between development using Webforms or MVC 2. Ignore the pros and cons of each. I saw mixed opinions of each of them. But which method would be best for those who have no experience in ASP.NET or C #?

If your answer is: find out both, then what should I learn first? MVC 2 or Webforms?

+4
source share
4 answers

I was in a similar situation with you a year ago. I am a computer science student, I finished my course well about a month ago. The first two years of my course, I worked with Java, PHP, Oracle, MySQL. It actually landed me on an industrial deployment in Oracle, where I used their ADF, which was based on Java.

In any case, all this made me think about what I wanted to use for my project last year, and without experience in using Microsoft technologies, they began to take risks along this path. I did not know ASP.NET MVC and spent time learning ASP.NET WebForms. I liked the easy development style, drag and drop is a very quick way to develop small sites. However, I also did not like the lack of control that I had, and the simplicity, I did not feel too contested.

Over the course of my last year, I began to research Model View Controller and how it is suitable for web applications. From this I came across ASP.NET MVC and, in my opinion, much better than ASP.NET WebForms. There seems to be a new trend in MVC frameworks for web applications, and this seems to be a hot technology for building web applications.

Now I can say that learning ASP.NET MVC was one of the best things I did. I do not know if you are British, but only two universities in the UK teach .NET. This simplified the work of the graduate, and I stood out from .NET candidates because I was from the Java course, just like you.

The transition from Java to .NET is not particularly difficult, all theories and concepts are the same. Also, ASP.NET MVC is becoming quite popular among enterprises specializing in the Microsoft technology stack. Now this is a completely new learning technology, while young will be an advantage. I finished work when a company rewrites its application from ASP.NET WebForms to MVC, and only I and the senior developer have ever used MVC, which led to a rather large role in the project.

If you're interested, my last yearโ€™s research can be found here , and I have a chapter on ASP.NET WebForms and MVC

My source code is also on my site, but its mainly MVC 1.0 is not 2.0

+8
source

The tough question.

What is your background in web development? Are you familiar with the MVC pattern?

Do you study it for work?

ASP.NET web forms are easier for beginners, as it hides most of the basic implementation details of the ASP.NET engine.

ASP.NET MVC requires a deeper understanding of concepts such as routing and HTTP methods.

But yes - you must study both.

Since MVC is the new ASP.NET web application development platform, I would first study Web Forms. This way you will appreciate the benefits of MVC when you compare it to web forms.

+2
source

if you want your hands to be dirty and really understand how the website works, go to MVC

if you want to drag your way to a functional but loaded overhead site, use web forms.

In fact, this question is quite difficult to answer without knowing your background. if you are comfortable with html, css, javascript, it may not be too hard to pick up MVC. if you are new to the Internet completely, it can be difficult to find out that many technologies and web forms at once abstract a lot of these kinds of things for you.

+1
source

There is a third option, especially useful for developers new to ASP.NET. You can use ASP.NET web pages that are different from ASP.NET web forms. ASP.NET web pages are great for new developers as well as developers new to web development. Also, it has a good way to port to ASP.NET MVC complexity. In fact, the latest version of ASP.NET MVC and the latest version of ASP.NET web pages use the same browsing mechanism.

Here is a link to the complete ASP.NET Web Pages Book:
Getting started with WebMatrix and ASP.NET web pages

In addition, here is a complete guide to WebMatrix content:
WebMatrix Content Guide

Here's a description: WebMatrix is โ€‹โ€‹a free, lightweight web development toolkit that provides the easiest way to create sites. It includes IIS Express (development web server), ASP.NET (web infrastructure) and SQL Server Compact (embedded database). It also includes a simple tool that simplifies website development and makes it easy to run websites from popular open source applications. The skills and code that you develop using the WebMatrix transition seamlessly in Visual Studio and SQL Server.

+1
source

Source: https://habr.com/ru/post/1311153/


All Articles