开发者

ASP .NET MVC 2.0 or WebFoms to develop an auction site like Ebay?

I´d like to know what is the best option to develop an 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?


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)


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜