如何在更新面板中禁用特定按钮的updateprogress。 [英] How to disable updateprogress for a particular button in update panel.

查看:84
本文介绍了如何在更新面板中禁用特定按钮的updateprogress。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我有updatepanel和updateprogress,在upsdatepanel里面我有两个按钮,但我只需要一个按钮的updateprogress功能。但现在当我点击两个按钮时,更新进度正在执行。是否有可能避免这种情况。

In my application i have updatepanel and updateprogress and inside that upsdatepanel i have two buttons but i need updateprogress functionality for only one button. But now when i click on both the button the update progress is executing. Is it is possible to avoid this.

推荐答案

在更新面板中添加triger将帮助我们解决这个问题。



Adding the triger inside update panel will help us to solve this.

<Triggers>
                        <asp:PostBackTrigger ControlID="xxxx; />
                        </Triggers>





要删除进度模板,我们只能这样做







To remove the progress template only we can do like this


<Triggers>
                        <asp:AsyncPostBackTrigger ControlID="xxx" EventName="Click" />
                       
                        </Triggers







这个有帮助我解决了这个问题。




This have helped me to solve the issue.


这篇关于如何在更新面板中禁用特定按钮的updateprogress。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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