views:

163

answers:

4

Hello ...

I´d like to know what is the best option to develope a Auction site like Ebay with ASP .NET 4.0:

  • MVC 2.0
  • WebForms

I only worked with WebForms, but I have time to learn MVC if is the best option...

What you think?

Thanks

+2  A: 

I would recommend MVC, because I would recommend MVC for anything! It is easy to pick up, and you will probably never go back to webforms.

Besides the simplicity and the clean mark up. If you are working with any sort of generated code, the model binding makes developing pages really fast and easy. I have used a custom generated BLL and DLL, when the DataAnnotations attributes are generated all client side and server side validation is automatic.

Dustin Laine
+3  A: 

MVC, but if you choose to use MVC do take the opportunity to write unit tests for your components. May I suggest a Test Drive Design approach?

While you are at it, you might also want to look in to Behavior Driven Design (it is like TDD, but few levels more abstracted)

Roberto Sebestyen
+1 for unit tests
Dustin Laine
A: 

Duplicate.

There is already loads of existing information on this subject:

http://stackoverflow.com/search?q=mvc+or+webforms

jfar
+2  A: 

This article http://www.lostechies.com/blogs/chad_myers/archive/2009/04/27/to-mvc-or-to-webforms.aspx has good arguments why you would want to use MVC over WebForms. You can read through the 4 bullet points and if they don't bother you then WebForms will be fine.

In a nutshell.

  1. WebForms are fast to develop.
  2. WebControls add ViewState and have PostBacks.
  3. If you come from another language WebForms might not be OO enough for you.
  4. WebForms are difficult to Unit Test

If you anticipate a high volume site then not having ViewState and being able to unit test should be important to you.

Cheddar