简体   繁体   English

IsCallback和IsInAsyncPostBack有什么区别

[英]What's Difference between IsCallback and IsInAsyncPostBack

我在Google上找不到任何答案,也许这是一个愚蠢的问题:)

Page.IsCallBack Page.IsCallBack

It is getting a value indicating whether the page request is the result of a call back. 它正在获取一个值,该值指示页面请求是否是回叫的结果。 Its a special postback, so a round-trip always occurs; 这是一种特殊的回发,因此总是会发生往返。 however, unlike the classic postback, the script callback doesn't redraw the whole page. 但是,与传统的回发不同,脚本回调不会重绘整个页面。 ViewState is not updated during a callback, it is for postback. ViewState不会在回调过程中更新,而是用于回发。 IsPostBack is true when a method in the code behind posts a page 当后面代码中的方法发布页面时,IsPostBack为true

IsInAsyncPostBack IsInAsyncPostBack

Gets a value that indicates whether the current postback is being executed in partial-rendering mode. 获取一个值,该值指示当前回发是否正在部分渲染模式下执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM