gridview没有触发行命令事件 [英] gridview not firing row command event

查看:76
本文介绍了gridview没有触发行命令事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请帮助我

我的gridview有编辑和删除按钮但是rowcommand事件没有触发代码隐藏,即使我写了命令arguement和命令名称。

谢谢你

解决方案

我想你的.aspx onrowrowcommand =YourEventName没有更新..请手动检查并更新。 。


谢谢你们所有

i找到了因为回发而没有被解雇的解决方案。


< pre lang =xml>我也给了OnRowCommand =grdAccount_RowCommand以及给定的代码。但它不是射击事件。

< asp:TemplateField HeaderText = VotableShares HeaderStyle-Horizo​​ntalAlign = < span class =code-keyword>左 >

< ; asp:LinkBut​​ton ID = lnkVoteShare runat = server 文字 =' < ;% #Bind( VotableShares%> '

< span class =code-attribute> usesubmitbehavior = true CommandName = VoteShare CommandArgument =' <% #Bind(< span class =code-string> VotableS野兔%> '

< span class =code-attribute> ForeColor = #3399ff >


hi,
pls help me
my gridview having edit and delete buttons but rowcommand event is not firing on the codebehind even i wrote the command arguement and command name.
thank u

解决方案

I think on your .aspx onrowrowcommand="YourEventName" is not updated..Please check and update it manually..


thank u for u all
i found the solution that is because of postback it is not fired.


I've given OnRowCommand="grdAccount_RowCommand" also and below given code also. But its not firing event.

<asp:TemplateField HeaderText="VotableShares" HeaderStyle-HorizontalAlign="Left">

                                                    <asp:LinkButton ID="lnkVoteShare" runat="server" Text='<%#Bind("VotableShares") %>'

                                                        usesubmitbehavior="true" CommandName="VoteShare" CommandArgument='<%#Bind("VotableShares") %>'

                                                        ForeColor="#3399ff">


这篇关于gridview没有触发行命令事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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