ASP.NET中的异步和同步回传 [英] Asynchronous and synchronous postback in ASP.NET

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

问题描述

什么是异步和同步回发之间的区别?

What are the differences between asynchronous and synchronous postback?

推荐答案

告诉我差同步回发和异步回发

异步回发的行为多
  同步回传,所有的
  服务器页面生命周期事件发生。
  但在渲染阶段,在一
  异步回发只
  更新面板的内容被发送
  回到浏览器,其中作为
  同步回传的所有页面
  内容被刷新/发送回
  浏览器。

Asynchronous postback behaves much as the synchronous postback, All the server page life-cycle events occur. But in rendering phase, in an asynchronous postback only the contents of the update panels are sent back to the browser where as in synchronous postback all the page content is refreshed/sent back to the browser.

另请参阅部分页呈现概述

这是异步回送行为多
  像同步回发。一切
  服务器页面生命周期事件发生时,
  和视图状态和表单数据
  preserved。然而,在呈现
  相,仅内容
  UpdatePanel控件发送到
  浏览器。网页的其余部分保持
  不变。

An asynchronous postback behaves much like a synchronous postback. All the server page life-cycle events occur, and view state and form data are preserved. However, in the rendering phase, only the contents of the UpdatePanel control are sent to the browser. The rest of the page remains unchanged.

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

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