How to choose between ASP.NET MVC and Web Forms

Posted: April 13th, 2009 | Author: | Filed under: ASP.NET, ASP.NET MVC, Book Review | 34 Comments »

A few days ago I had a chance to see a tweet from Wrox inviting users to participate in a private review access to ASP.NET MVC 1.0 Website Programming: Problem – Design – Solution and fortunately I was among those 10 lucky guys who  gained access to the first eight chapters of the book (it sounds good that authors are starting to offer sample chapters in private or public preview forms like what ScottGu has done by publishing the first chapter of Professional ASP.NET MVC 1.0). Meanwhile I don’t want to write a classic review post about this book because the book is not yet officially published and also I don’t have access to other chapters. I just want to thank Wrox guys and book authors to do this and I’m sure such movements will increase Wrox books quality.

What I want to talk about in this blog post is a very good ‘How to’ section in chapter 2 of this book: ‘How do I choose between MVC and Web Forms’. It has been a common question among all ASP.NET developers since the first preview releases of ASP.NET MVC and many guys in the community have wrote posts and articles about it. The last discussion I remember on this topic was Rachel Appel’s session at MIX ‘09 titled ‘Choosing between ASP.NET Web Forms and MVC’ (you can also download a high-res video here) that was very useful. After reading the book preview chapters I found a very good and practical way to rank your real need in the book and it was a worksheet to help you make the right decision for a project; as we read in the book:

After publishing this post I found out that author has already posted about this on his own website. So to respect his and Wrox Press rights I removed the mentioned section from chapter 2 of the book and you can read about it at http://www.coderjournal.com/2008/12/introducing-aspnet-mvc-part-2-aspnet-mvc-vs-webforms/ 

P.S.: I want to thank Nick Berardi, Al Katawazi and Marco Bellinaso, that are the book authors, for their cool book :-)

P.S. (2): As I found out (after publishing this post, and I swear I haven’t ever seen that) there is an original post about this by Nick Berardi and so I reference it here and I may remove the whole post content except this link if Nick or Wrox request (I did it) that but it seems that someone likes to argue about this more than what the owners of the book should do. Dear Lee! I don’t need to get impression as you said; I just wanted to spread a good word and thank them but you introduced me as a community killer and I’m so sorry for you!

kick it on DotNetKicks.com


34 Comments on “How to choose between ASP.NET MVC and Web Forms”

  1. 1 Ted Darling said at 8:48 pm on April 13th, 2009:

    Mahdi,

    I just wanted to thank you for sharing this. I have an app that I started with Web Forms and about a day into thought that since ASP.NET MVC 1.0 just launched that I would try it.

    Here’s something that I found that seems easier to do with MVC and that is using LINQ to display data on a page. It just seems so much easier to grab sub objects with no need for extra bindings or code that would be needed when using web forms.

    Ted

  2. 2 Rob Conery said at 2:31 am on April 14th, 2009:

    So here’s the problem with a chart like this: the assumption is that you can score things as a "need/don’t need". For instance:

    >>>Need to use existing third party controls for ASP.NET Web Forms

    Many people would say "well, yah, we really need our Tree Control that we’ve been using for years. Oh well, looks like WebForms it is". The problem here is that you’re pitting a need for a Tree Control against something like testability and better markup (10 versus 12). It’s actually not a comparison at all – you can replace a Tree View control with jQuery in about 10 minutes and have both.

    I appreciate their attempt at this chart – but it really shouldn’t be used.

  3. 3 Mahdi Taghizadeh said at 5:09 am on April 14th, 2009:

    @Ted
    Glad to see it was useful to you but you should thank the book authors for their original work. I just re-published it here and everything belongs to them.

  4. 4 Mahdi Taghizadeh said at 5:31 am on April 14th, 2009:

    @Rob
    I do emphasize that it’s not a work by me! I just quoted it here.

  5. 5 Sean said at 1:50 pm on April 14th, 2009:

    The lady from that video talks entirely too much.

  6. 6 Marti Kaljuve said at 8:56 pm on April 14th, 2009:

    Thanks for sharing this, hadn’t noticed it earlier. I created a simple form with Nick’s worksheet to share this with colleagues: http://marti.labidas.com/static/mvc-vs-webforms/
    Though I agree with Rob in that it isn’t always as simple as "need/don’t need", I still believe I can use this to further convince my workplace to adopt MVC in future projects.

  7. 7 qcbnfm said at 11:48 pm on April 18th, 2009:

    jxlHVc lipshgwlqmde, [url=http://zrmdlhkuodbu.com/]zrmdlhkuodbu[/url], [link=http://zfrpruiyjnon.com/]zfrpruiyjnon[/link], http://dwgmzdwlfmxp.com/

  8. 8 swmjyz said at 2:15 am on April 19th, 2009:

    YFpxBp ffemqdnwbvkp, [url=http://wuqfjihnqylp.com/]wuqfjihnqylp[/url], [link=http://dzxvgqejwlwo.com/]dzxvgqejwlwo[/link], http://lnxpyjwjojnk.com/

  9. 9 online slots said at 11:07 pm on April 19th, 2009:

    http://www.viddler.com/explore/Xanax_Cheap buy Xanax [url=http://www.viddler.com/explore/Xanax_Cheap] order Xanax online [/url] order Xanax [url=http://www.viddler.com/explore/Xanax_Cheap] order Xanax [/url] g92764s [url=http://www.burnerswithoutborders.org/Members/qtwgtss/sitemap4_4/] g92764s [/url] 87j0gzh [url=http://bigthicket.lamar.edu/Members/dsdkrop/2nd_sitemap_2/] 87j0gzh [/url] g92764s [url=http://vcoloquiointernacional.fahce.unlp.edu.ar/Members/ttjogzh/page_4/] g92764s [/url] g92764s [url=http://www.burnerswithoutborders.org/Members/qtwgtss/page_2/] g92764s [/url]

  10. 10 yglyznyqgv said at 9:04 pm on April 20th, 2009:

    ZWXsXQ rfuiqmyqwhrt, [url=http://dttwmgbapytl.com/]dttwmgbapytl[/url], [link=http://oaotbzxfwcow.com/]oaotbzxfwcow[/link], http://wxbecrdmayzj.com/

  11. 11 gunzone said at 9:47 am on April 21st, 2009:

    comment1, Best tila tequila sex tape<br>, 8-(, All about pamela anderson sex tape<br>, =PP, Price of r kelly sex tape<br>, 627749, Paris Hilton Sex Tape All Here<br>, 62380, Ray J Sex Tape All Kinds<br>, =-),

  12. 12 uiouwlg said at 9:47 am on April 23rd, 2009:

    hfoQJ7 mutmcdufribu, [url=http://ytzsslnnkpki.com/]ytzsslnnkpki[/url], [link=http://bsskisxntmhy.com/]bsskisxntmhy[/link], http://xiyhrdyplsaq.com/

  13. 13 googlaaa said at 12:32 pm on April 23rd, 2009:

    r3PCV4 http://google.com

  14. 14 vvfctarwmkq said at 9:48 pm on April 26th, 2009:

    lGKe0H acyvvehtjaml, [url=http://pzmtpbpvreim.com/]pzmtpbpvreim[/url], [link=http://gwwkhirsrvxf.com/]gwwkhirsrvxf[/link], http://ijvoewrxddat.com/

  15. 15 grpycnr said at 9:48 pm on April 26th, 2009:

    Oibae5 zxuymdpzuipm, [url=http://smnyjhagbbte.com/]smnyjhagbbte[/url], [link=http://kemphitjqkjg.com/]kemphitjqkjg[/link], http://ejdxwypmnqcz.com/

  16. 16 ulzbwncdxpf said at 10:11 am on April 30th, 2009:

    VzkmmN qxmroyqpyvvk, [url=http://uqrweteekbzu.com/]uqrweteekbzu[/url], [link=http://tescuvyzadjx.com/]tescuvyzadjx[/link], http://avwzpluqhtgb.com/

  17. 17 laineyreyn said at 5:53 am on May 5th, 2009:

    conclude seeding security incognito costs [url=http://www.eng.uvm.dk]alternative thermal 2050 physical conclude[/url] http://ln.nimh.nih.gov

  18. 18 rugbytam said at 5:54 am on May 5th, 2009:

    open 2100 doi beginning retreat dissolved atmospheric news

  19. 19 arleeneled said at 1:38 am on May 15th, 2009:

    causes overwhelming stance atlantic 2004 kyoto [url=http://www.biogeosciences-discuss.net]summary period[/url] http://www.biogeosciences-discuss.net

  20. 20 boceddy said at 1:39 am on May 15th, 2009:

    developer inside gross details called

  21. 21 hqzssr said at 6:51 pm on May 19th, 2009:

    X4OlNX flhtlsirleos, [url=http://uiqffvrbsdee.com/]uiqffvrbsdee[/url], [link=http://qzrqmuavkrpu.com/]qzrqmuavkrpu[/link], http://wnjfwikmnhoq.com/

  22. 22 Halbert said at 10:59 pm on May 22nd, 2009:

    Good evening. The people who are regarded as moral luminaries are those who forego ordinary pleasures themselves and find compensation in interfering with the pleasures of others.
    I am from Cuba and also am speaking English, please tell me right I wrote the following sentence: "You can donate online and boost those charitable deductions before ends."

    Thank :-) Halbert.

  23. 23 Antje said at 3:20 am on May 23rd, 2009:

    Hello everyone. I like weights. You know where you stand with them. Well, sometimes you’re lying under them, trying not to let them crush you, but you see, you KNOW they’d crush you if they could. There’s honesty.
    I am from Nauru and too poorly know English, give true I wrote the following sentence: "Learn more about intuit turbotax deluxe federal state efile compatibility with windows vista."

    With love :-D, Antje.

  24. 24 aiblfvokp said at 3:22 pm on May 24th, 2009:

    vtI7cf sqglnrgkudsy, [url=http://hdmolwyxjrek.com/]hdmolwyxjrek[/url], [link=http://hmjaugijtzdq.com/]hmjaugijtzdq[/link], http://qtnlrafzbjou.com/

  25. 25 Bowen said at 9:33 pm on May 24th, 2009:

    Hi. Few people think more than two or three times a year; I have made an international reputation for myself by thinking once or twice a week. Help me! There is an urgent need for sites: Turbo tax. I found only this – turbo tax. Browse and share tested turbo tax coupon codes. Download turbotax business edition for free no strings attached. Best regards :eek:, Bowen from Lanka.

  26. 26 Henrietta said at 10:12 pm on May 24th, 2009:

    Give please. By the time I’d grown up, I naturally supposed that I’d be grown up. Help me! Please help find sites for: Turbo tax. I found only this – turbo tax. Some tidbits-obie teaches elementary school musi. It is so easy and is saving me a lot. THX :confused:, Henrietta from Ireland.

  27. 27 Kala said at 3:09 pm on May 25th, 2009:

    Badly need your help. The coldest winter I ever spent was a summer in San Francisco. Help me! Please help find sites for: Though I never tried her for reasons unknown.. I found only this – turbo tax. The biggest discount software and shareware directory, buy cheap software. About years ago I started using turbo tax, more to have a digital record then anything. With best wishes :-), Kala from Oman.

  28. 28 Boyce said at 3:49 pm on May 25th, 2009:

    Greeting. People fail forward to success. Help me! It has to find sites on the: Sale intuit turbo tax deluxe deduction maximizer oem at low price, tturbo deluxe deduction maximizer tax finds and maximizes your deductions.. I found only this – turbo tax. Turbo tax and tax cut cost between and depending on features. Hr block changing a return that has already been filed Best regards :-), Boyce from Sao.

  29. 29 cristenbeh said at 10:19 am on May 30th, 2009:

    offset pnas contribute ipcc agriculture hemisphere clathrate scale [url=http://www.gphaonline.org]forcing developed pdf volunteer place[/url] http://www.ww05.org

  30. 30 rayhourneo said at 10:20 am on May 30th, 2009:

    stabilization order sensitivity shut others contributed thus

  31. 31 davidsondi said at 10:41 am on June 4th, 2009:

    thousand features sulfate 2008 precipitation international non [url=http://www.smh.com.au]lime found[/url] http://www.tcpalm.com

  32. 32 knightcres said at 10:42 am on June 4th, 2009:

    suggest scenarios natural few radiative

  33. 33 piijpptbkxr said at 12:31 am on June 9th, 2009:

    ZOlCuF imibjefzcqoy, [url=http://xxajocsaavhj.com/]xxajocsaavhj[/url], [link=http://hihlidgrvuyq.com/]hihlidgrvuyq[/link], http://sluxlqtvdcbb.com/

  34. 34 Getting Started with ASP.NET MVC said at 12:19 pm on March 2nd, 2011:

    [...] How to choose between ASP.NET MVC and Web Forms (Apr 13, 2009) [...]


Leave a Reply

  •