网格视图的选定索引已更改,无法在更新面板中使用 [英] Selected index changed of grid view not working inside update panel

查看:90
本文介绍了网格视图的选定索引已更改,无法在更新面板中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我将网格视图放置在更新面板中,并将其放入内容模板中.然后,我拿起更新面板的触发器,并将异步回发触发器ID放置到网格视图的ID中,并在选定事件发生更改时将该事件命名为该事件.我仍然无法使用它.
我看到了很多人正在使用它的线程,而不是我哪里出错了?

Hi,
I placed my grid view inside update panel and took it into content template. Than I picked up triggers of update panel and placed async post back trigger id to the id of grid view and named the event as selected event changed. Still I am not able to use it.
I have seen many threads in which people are making use of it than where am I going wrong ?

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <Triggers>
                            <asp:AsyncPostBackTrigger ControlID = "gv_workOrders" ControlID="SelectedIndexChanged" />
                            </Triggers>
                            <ContentTemplate>

<my grid view>
</ContentTemplate>
                                </asp:UpdatePanel>


在网格视图内单击链接按钮时,我会将用户重定向到另一个页面,直到他被重定向为止,我要显示他正在更新过程中加载图像.这就是为什么我要这样做.
但是还没有完成.
请帮忙.


On clicking on the link button inside the grid view I will redirect the user to another page, till he gets redirected I want show him loading image in update progress. That''s why I am trying to do this.
But Its not getting done.
Please help.

推荐答案

更改此行(查找eventname)
< asp:asyncpostbacktrigger controlid ="gv_workOrders" eventname ="SelectedIndexChanged"/>
Change this line (look for eventname )
<asp:asyncpostbacktrigger controlid="gv_workOrders" eventname="SelectedIndexChanged" />


这篇关于网格视图的选定索引已更改,无法在更新面板中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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