asp.net - 回调和部分回发有什么区别?

标签 asp.net callback partial-postback

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

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

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

提前致谢。

最佳答案

好问题...

来自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.

关于asp.net - 回调和部分回发有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3016424/

相关文章:

c# - 要制成超链接的动态字符串

sql - SQL Server 2016中order by子句中的单例多列

ruby-on-rails - 所有模型的 ActiveRecord 全局回调

javascript - setState 从回调内部呈现 React 组件中的相关内容

javascript - 如何在更新面板中控制或停止部分回发

c# - 使用 ROW_NUMBER() 和 PARTITION BY 的复杂 LINQ 查询的解决方案

asp.net - IO.File.Exists() 总是返回 false

asp.net - WebForm_DoCallback 定义

asp.net - 服务器端调试期间的 Sys.WebForms.PageRequestManagerTimeoutException