ASP.Net中同步回发和异步回发之间的区别? [英] difference between synchronous postback and asynchronous postback in ASP.Net?

查看:90
本文介绍了ASP.Net中同步回发和异步回发之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同步回发和异步回发有什么区别?我是ASP.Net的初学者,所以请用代码和描述来定义它.

What is the difference between synchronous postback and asynchronous postback? I''m beginner in ASP.Net so please define it with code and description.

推荐答案

同步回发:完整的页面转到服务器,并返回结果. br/>
异步回发:部分页面/部分Web转到服务器(相关部分)并返回结果.

示例:

如果您的页面1中有2个下拉菜单,分别代表国家和城市,则城市下拉列表中的城市绑定完全取决于国家/地区,而不是将整个页面发送到服务器,只需发送/更新这些下拉菜单到服务器,这是我们关心的问题(其他页面部分将是静态的,因此它将在客户端保持不变,无需将它们发送到服务器),这将提高我们的Web应用程序的性能.

让我知道您是否还有任何困惑.

谢谢,
synchronous postback: Complete page goes to server and back with the result.

asynchronous postback: Partial page/Part of the web goes to the server(concern part) and back with the result.

Example:

If you have 2 drop-downs in your page 1 for country and other for city, binding of the cities in the city drop-down totally depend on the country, instead of sending whole page to the server just send/update those drop-downs to server which are our concern(other page parts will be static so it will remains the same at client sideand no need to send them to server) that will increase performance of our web applications.

Let me know if you still have any confusion.

Thanks,


* Asynchronous 回发仅呈现页面的所需部分;而
synchronous postback呈现整个页面以进行任何postback.

* Asynchronous postback一次仅执行一次postback,也就是说,如果有两个按钮进行异步postback,则动作将被一个接一个地执行.而
synchronous 回发一次执行所有操作.

* Asynchronous postback仅修改引发回发的更新面板;而synchronous postback会修改整个页面.

请在此处 [此处 [
* Asynchronous postback renders only the required part of the page; whereas,
synchronous postback renders the entire page for any postback.

* Asynchronous postback executes only one postback at a time, that is, if you have two buttons doing asynchronous postback, the actions will be performed one by one; whereas,
synchronous postback executes all the actions at once.

* Asynchronous postback only modifies the update panel that raises the postback; whereas, synchronous postback modifies the entire page.

Have a look here[^] and more similar threads here[^]


查看此链接以获取详细信息:
http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/developer/ADF/ajax_callback.htm [
Check out this link for detail:
http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/developer/ADF/ajax_callback.htm[^]

Good luck.


这篇关于ASP.Net中同步回发和异步回发之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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