What is the difference between AsyncPostBackTrigger & PostBackTrigger?

后端 未结 4 1734
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 05:07

What is the difference between AsyncPostBackTrigger & PostBackTrigger?

4条回答
  •  独厮守ぢ
    2020-12-03 05:28

    Here's a blog post which explains the difference:

    In the template in an update panel, there are the options of an AsyncPostBackTrigger or a PostBackTrigger.

    By default, controls outside of an update panel will trigger a normal synchronous post back. The AsyncPostBackTrigger “wires” up these controls to trigger an asynchronous post back. Conversely, controls declared inside an update panel will trigger an asynchronous call by default. The PostBackTrigger short circuits this, and forces the control to do a synchronous post back.

提交回复
热议问题