ASP.NET web表单+ ASP.NET AJAX与ASP.NET MVC和Ajax框架的自由 [英] ASP.NET webforms + ASP.NET Ajax versus ASP.NET MVC and Ajax framework freedom

查看:269
本文介绍了ASP.NET web表单+ ASP.NET AJAX与ASP.NET MVC和Ajax框架的自由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有选择,哪条路会带什么?

If given the choice, which path would you take?

ASP.NET Web表单+ ASP.NET AJAX

ASP.NET Webforms + ASP.NET AJAX

您选择的ASP.NET MVC + JavaScript框架

ASP.NET MVC + JavaScript Framework of your Choice

是否有任何限制的ASP.NET Web表单/ ASP.NET AJAX有面对面的人MVC?

Are there any limitations that ASP.NET Webforms / ASP.NET AJAX has vis-a-vis MVC?

推荐答案

我已经做了两个最近,我会采取M​​VC十之八九的。

I've done both lately, I would take MVC nine times out of ten.

  • 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框架的自由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆