updatepanel中的GridView中的编辑按钮不起作用 [英] edit button in gridview within updatepanel is not working

查看:91
本文介绍了updatepanel中的GridView中的编辑按钮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在更新面板中有gridview....在updatepanel内使用gridview时,此编辑和更新按钮在gridview中不起作用.

如果我删除了updatepanel,它就可以正常工作.但是当我在gridview中单击按钮时,我需要使用updatepanel来停止刷新页面.
另外,请给我更多的想法,以停止在gridview中的按钮单击事件上刷新页面.


问候
vivek

Hi all,

I have gridview inside the update panel ....In this the edit and update button is not working in gridview when gridview inside the updatepanel....

If i removed the updatepanel it works fine..But i need updatepanel to stop refreshing the page when button click in gridview....

Utherwise give more ideas to me to stop refreshing the page on button click event in gridview.


Regards
vivek

推荐答案

尝试在UpdatePanel中添加触发器:
Try adding a trigger within your UpdatePanel:
<triggers>
    <asp:asyncpostbacktrigger controlid="Button2" eventname="Click" />        
</triggers>


这篇关于updatepanel中的GridView中的编辑按钮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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