回调和部分回发有什么区别?

发布于 2024-09-05 03:11:09 字数 184 浏览 0 评论 0原文

有区别吗,或者这些术语是同义词吗?

抱歉,如果之前有人问过这个问题,我只能找到完整回发和回调之间的区别。我已经知道完整回发有何不同。

在使用 ASP.Net 2.0 时,如果这很重要的话。 (顺便问一下,这重要吗?或者这些术语对于任何基于 Web 的应用程序的定义都相同吗?)

提前致谢。

Is there a difference, or are the terms synonymous?

Sorry if this has been asked before, I could only find the difference between a full postback and a callback. I'm already aware of how a full postback is different.

In using ASP.Net 2.0, if that matters. (By the way, does it matter? Or are these terms defined the same for any web based application?)

Thanks in advance.

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

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

发布评论

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

评论(1

陌路黄昏 2024-09-12 03:11:09

好问题...

来自 http://p3net.mvps.org/CHowSharp/2007 /八月/08192007.aspx

唯一真正的区别是术语,但是当人们使用这些术语时,他们通常会想到两个不同的概念。当客户端回调服务器以执行某些工作,然后更新客户端上的 UI 时,就会发生回调。它与普通回发不同,因为仅更新必要的 UI 元素。

部分回发是回调的 AJAX 术语。实际上,部分回发使用回调来回调到服务器。 ASP.NET v2 支持回调,但不支持部分回发。 AJAX 添加了对部分回发的支持。通过部分回发,AJAX 可以有效地接管页面的呈现。当发生部分回发时,AJAX 介入,让 ASP.NET 启动正常的回发过程。然而,AJAX 控制渲染,因此它只渲染它需要的控件。渲染完成后,AJAX 会将渲染的数据打包并返回给客户端。在客户端,AJAX 通过更改更新页面的 DOM。

Good question...

From http://p3net.mvps.org/CHowSharp/2007/August/08192007.aspx

The only real difference is the terminology but when people are using these terms they generally have two different concepts in mind. A callback occurs when the client calls back to the server to perform some work and then updates the UI on the client. It is different than a normal postback because only the necessary UI elements are updated.

A partial postback is the AJAX terminology for a callback. In reality a partial postback uses a callback to call back into the server. Callbacks are supported in ASP.NET v2 but not partial postbacks. AJAX adds support for partial postbacks. With partial postbacks AJAX effectively takes over the rendering of the page. When a partial postback occurs AJAX steps in lets ASP.NET start the normal postback process. However AJAX controls the rendering so it only renders the controls that it needs. When rendering is complete AJAX packages up the rendered data and returns it to the client. On the client-side AJAX updates the DOM for the page with the changes.

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