问题描述
如果有选择,哪条路会带什么?
If given the choice, which path would you take?
ASP.NET Web表单+ ASP.NET AJAX
或
您选择的ASP.NET MVC + JavaScript框架
是否有任何限制的ASP.NET Web表单/ ASP.NET AJAX有面对面的人MVC?
Are there any limitations that ASP.NET Webforms / ASP.NET AJAX has vis-a-vis MVC?
推荐答案
我已经做了两个最近,我会采取MVC十之八九的。
I've done both lately, I would take MVC nine times out of ten.
- 我真的不喜欢的asp.net AJAX控件的实现,我碰到了很多问题,时间,事件和调试回发的问题。我学到了很多,从http://encosia.com/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/
- 我们使用了MVP模式的asp.net项目 HTTP://www.$c$cplex.com/aspnetmvp 一>,并且图案伟大的工作。但是,我们结束了一个很大的code的看法,因为我们直接与服务器端控件进行交互(比如,有很多gridview的操纵)。这code几乎是无法验证的单元测试框架。我们应该更勤奋关于保持code OUT的观点,但在某些情况下,它只是更容易,更乱了。
- I really dislike the implementation of the asp.net ajax controls, I've run into a lot of issues with timing, events, and debugging postback issues. I learned a lot from http://encosia.com/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/
- The asp.net project we used the MVP pattern http://www.codeplex.com/aspnetmvp, and the pattern worked great. However we ended up with a lot of code in the view because we were directly interacting with the server side controls (i.e a lot of gridview manipulations). This code is nearly untestable with the unit test frameworks. We should have been more diligent about keeping code out of the view, but in some instances it was just easier and less messy.
在同一时间,我会选择使用asp.net形式的发展是使用GridView控件。我们正在使用jquery我们与MVC JavaScript框架,但还没有找到一个很好的GridView喜欢控制。我们拥有的东西是功能性的,但时间,我们陷入的学习,调整的金额,并调试它VS使用asp.net服务器端控件一直很大。一个失去所有漂亮的小工具Microsoft提供开箱即用做非asp.net的形式发展的。这些部件的损耗释放,并且吓人,当你第一次启动的同时。
The one time I would choose using asp.net forms development would be to use the gridview control. We are using jquery for our javascript framework with MVC and have not yet found a very good gridview like control. We have something that is functional, but the amount of time we have sunk into learning, tweaking, and debugging it vs using asp.net server side controls has been substantial. One looses all of the nice widgets Microsoft provides out of the box doing non asp.net form development. The loss of those widgets is freeing, and scary at the same time when you first start.
在这一天结束时,我很高兴我们正在做的MVC开发。我和我的团队已经学会了一个新的框架,(我们只asp.net开发前),并且已经得到了我们的手脏HTML和JavaScript。这些技巧,我们可以采取到其他项目或其他语言,如果我们以往任何时候都需要。
At the end of the day I'm happy we are doing MVC development. My team and I have learned a new framework, (we were only asp.net developers before), and have gotten our hands dirty with html and javascript. These are skills we can take onto other projects or other languages if we ever need to.
这篇关于ASP.NET web表单+ ASP.NET AJAX与ASP.NET MVC和Ajax框架的自由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!