What's your choice for your next ASP.NET proje

2019-01-10 14:17发布

Let's say that you will start a new ASP.NET web site/application tomorrow. Would you chose Web Forms or MVC, and why?

29条回答
地球回转人心会变
2楼-- · 2019-01-10 14:46

MVC FTW!, Reasons?

  • Total Control over my HTML
  • No Web Forms magic
  • No complex page life-cycles
  • Closer to the metal
  • It is the natural thing to use with HTTP
查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-01-10 14:46

I would like to be doing ASP.Net MVC, even though I'm still very new to MVC. But it's not to be in the foreseeable future.

查看更多
Ridiculous、
4楼-- · 2019-01-10 14:48

I would choose Webforms for local/intranet applications with rich business logic and MVC for public/internet site (blogs/forums/presentations/simple services). "WebForms application model" is preferable in areas where rich state support is critical

查看更多
Bombasti
5楼-- · 2019-01-10 14:48

In ASP.NET MVC you sacrifice your controls toolbox, URL routing is already in ASP.NET (web forms)

So I would stick with ASP.NET web forms ( I'm not saying that MVC isn't good.)

jQuery, do you think the IT folks will let you use it?

查看更多
beautiful°
6楼-- · 2019-01-10 14:50

I would like to go with MVC. I always seam to be fighting the abstraction when I work with WebForms.

To use WebForms effectively you actually need to know more about how the web works than if you use something like PHP. I find myself using <asp:Literal instead of <asp:Label to avoid putting a <span> around the text and running labs to figure out the order of events, etc.

查看更多
一夜七次
7楼-- · 2019-01-10 14:51

I wait for MVC on .net for a long time. I think more than 90% people will choose MVC rather than webform.

查看更多
登录 后发表回答