回调和部分回发之间有什么区别? [英] What's the difference between a Callback and a Partial Postback?

查看:269
本文介绍了回调和部分回发之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有区别,或者是同义词?

Is there a difference, or are the terms synonymous?

对不起,如果以前问过,我只能找到 full 回发和回调。我已经知道如何完全回发是不同的。

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.

在使用ASP.Net 2.0,如果这很重要。 (顺便说一句,是否重要?或者这些术语是否对任何基于网络的应用程序都定义相同?)

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?)

提前感谢。

推荐答案

好问题...

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


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

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.

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

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.

这篇关于回调和部分回发之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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