开发者

avoid update panel trigger by child control

开发者 https://www.devze.com 2022-12-23 00:11 出处:网络
By default the postback of child controlswill trigger update panels\' update. How can I avoid the same开发者_Go百科?

By default the postback of child controls will trigger update panels' update.

How can I avoid the same开发者_Go百科?

Thanks in advance !


You can set the ChildrenAsTriggers property of the updatepanel to false.

This will stop children causing postbacks by default.

Another way is to look at your scriptmanager's AsyncPostBackSourceElementID to identify the control that triggered the event, and then ignore it.

0

精彩评论

暂无评论...
验证码 换一张
取 消