Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

ASP.NET: MVC v WebForms

  • 29-01-2014 01:04PM
    #1
    Registered Users, Registered Users 2 Posts: 2,815 ✭✭✭


    I know there are loads of articles about this topic online, but I'm curious about the opinions of the members of this forum on this issue, especially any ASP.NET leads.

    For example, let's say you had a develop a typical online store with a shopping cart. Would you recommend MVC or WebForms and what are their benefits/drawbacks.

    Aside from the relative simplicity/fast dev time of WebForms do they hold any other major advantage over MVC.

    Cheers


Comments

  • Registered Users, Registered Users 2 Posts: 2,062 ✭✭✭Colonel Panic


    WebForms aren't terrible, but I think postbacks and embedded viewstate is at odds with how the web works. It feels like a solution for desktop app developers.

    I wouldn't balk at having to maintain WebForms sites, but new development should always be done with MVC, which IMO is one of the best frameworks of it's kind.

    It's insanely quick and easy to make stuff with MVC once you get your head around the conventions and learn a bit of Razor syntax.


  • Registered Users, Registered Users 2 Posts: 2,815 ✭✭✭SimonTemplar


    WebForms aren't terrible, but I think postbacks and embedded viewstate is at odds with how the web works. It feels like a solution for desktop app developers.

    I wouldn't balk at having to maintain WebForms sites, but new development should always be done with MVC, which IMO is one of the best frameworks of it's kind.

    It's insanely quick and easy to make stuff with MVC once you get your head around the conventions and learn a bit of Razor syntax.

    That is exactly how I feel about Webforms. I'm currently doing ASP.NET as part of a Computing degree course and we are focused entirely on Webforms. I think that is a mistake, hence my question here. I think there is far too much abstraction using Webforms (even the GUI wizards Visual Studio has to set up your db etc). Students don't get a feel for the underlying first principles. I know the MVC framework abstracts some of the workings also, but not to the same extent as Webform (from what I've seen so far anyway)


  • Registered Users, Registered Users 2 Posts: 14,361 ✭✭✭✭jimmycrackcorm


    Work on a legacy web application that is mostly webforms. They are terrible, every screen update flashes the browser. We've moved to mvc for new stuff which is easier and more refined.

    It's a no contest especially when you mix in Jquery UI or knockoutJS


Advertisement