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

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

问题描述

时有区别,或者是含义相同?

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.

在使用ASP.Net 2.0,如果该事项。 (顺便说一下,有什么关系?或者,这些术语定义为任何基于Web的应用程序一样吗?​​)

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

先谢谢了。

推荐答案

好问题...

从<一个href=\"http://p3net.mvps.org/CHowSharp/2007/August/08192007.aspx\">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天全站免登陆