重构以替换 AjaxControlToolkit 或 RadAjaxManager

发布于 2024-07-25 22:20:25 字数 613 浏览 1 评论 0原文

我继承了 DotNetNuke 代码库,并遇到了包含 AjaxControlToolkit 的领域和 Telerik RadAjaxManager。 在很多情况下,其中一个比另一个更受青睐,但在整个代码库中只有轻微的偏向 Telerik。

我熟悉 MS Ajax Exentsions,但以前从未使用过这两个框架。 代码必须重构,我只想使用单个框架。 这样做所涉及的工作似乎是相同的,所以我想知道保留哪一个更好?

我网站的 Ajax 部分显示从 Web 服务接收 JSON 的实时价格,并处理价格交易。 还会发生一些其他 Ajax 请求,但只是为了向用户显示注释。

代码库还广泛使用了 jQuery,那么如果我使用 jQuery,我真的需要这些框架吗? 我还可以使用我已经熟悉的 MS 扩展,甚至可以手动滚动呼叫,但无论哪种方式,我都需要一个单一的连贯方法。

I have inherited a DotNetNuke codebase and have come across areas that have included both the AjaxControlToolkit and the Telerik RadAjaxManager. There are plenty of instances where one is preferred to the other but with only a slight bias towards Telerik in the code base as a whole.

I am familiar with the MS Ajax Exentsions but haven't used either of these frameworks before.
The code has to be refactored and I only want to use a single framework. The work involved to do this seems equal so I wonder which would be the better to retain?

The Ajax parts of my site show real time prices recieving JSON from a webservice and process trades on the prices. A few other Ajax requests take place but just to display notes to the user.

The code base also makes extensive use of jQuery so would I really need these frameworks if I use that instead? I could also use the MS Extensions that I'm already familiar with or even hand-roll the calls but whichever way, I want a single coherent approach.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遗失的美好 2024-08-01 22:20:25

看起来 Simone Chiaretta 已经在网络空间中调查了 Ajax 框架的流行程度,他的结果如下: 2009 年 Ajax 调查:jQuery 和 MS Ajax 几乎与 .NET 并列开发人员

2009 年 .Net 开发人员流行的 Ajax 框架
(来源:dzone.com)

因此,通过群众的智慧以及在我的代码库的这个地方不必要地使用 Telerik,我现在将使用 AjaxControlToolkit,看看稍后是否可以将其转换为 jQuery 。

Looks like Simone Chiaretta was already surveying the webspace for the popularity of Ajax frameworks and his results are in; Ajax Survey 2009: jQuery and MS Ajax are Almost Tied Among .NET Developers

Popularity Ajax Frameworks for .Net Developers 2009
(source: dzone.com)

So by the wisdom of crowds and the unnecessary use of Telerik in more than just this place of my code base I'm going to go with AjaxControlToolkit for now and see if I can't transition that to jQuery later.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文