Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm an ASP.NET programmer (Webforms). Should I switch to MVC? [closed]

I like having control over exactly what's going on under the hood (the MVC way), but I'm also lazy, and don't like writing tons of javascript GUI things. Should I or should I not switch to MVC? Thanks, Nestor

like image 731
Nestor Avatar asked Oct 04 '09 21:10

Nestor


People also ask

Should I use Web Forms or MVC?

Asp.Net Web Form has built-in data controls and best for rapid development with powerful data access. Asp.Net MVC is lightweight, provide full control over markup and support many features that allow fast & agile development. Hence it is best for developing an interactive web application with the latest web standards.

Is ASP.NET Web Forms dying?

The short answer is no – ASP.NET Web Forms is dying. You can continue running Web Forms applications for decades to come because it is tied to the operating system.

Why is MVC better than Web Forms?

Advantages of MVC Over WebformsLight Weight: MVC pages are lighter as compared to webforms as they don't carry bulky viewstate with them. Better Control over Design: MVC has dropped concept of server controls and instead use HTML controls or HTML helpers to generate HTML controls.

Is MVC easier than Web Forms?

Following are the advantages of ASP.NET MVC over Web Forms: Absence of statefulness and ViewState makes the page lighter compared to WebForms. Shorter page life-cycle makes it easy to understand and less complex. Higher control over HTML, JavaScript(DOM elements) and CSS makes customization and accessibility easier.


1 Answers

It depends. If you are good at writing Webforms applications, you have lots of ASP.NET server controls already at your disposal, and you don't need a lot of finesse (read: code behind) in your application, then Webforms is probably a better choice.

On the other hand, if you like applications that are highly performant and cleanly architected, need precise control over your markup, and would like your application to be testable, then ASP.NET MVC is a better choice.

There are lots of easy to use JQuery widgets available for ASP.NET MVC, so your dislike of Javascript shouldn't hold you back. But there is a learning curve to MVC, so if you are averse to learning new things, I would stick with Webforms.

like image 111
Robert Harvey Avatar answered Nov 01 '22 17:11

Robert Harvey