开发者

avoid update panel trigger by child control

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜