【问题标题】:ImageButton from gridview not working for onClick Event with RowCommand of gridview来自gridview的ImageButton不适用于带有gridview的RowCommand的onClick事件
【发布时间】:2013-04-02 11:33:19
【问题描述】:

我在 GridView 中使用图像按钮,例如

<asp:ImageButton ToolTip="<%$ Resources:Captions,lbledit%>" ID="imgbtnPopup" runat="server" ImageUrl="<%$ Resources:Paths,imgbtnEdit%>"   CommandName="callPopup" CommandArgument='<%# Eval("WOID")  %>' CssClass="imgActions" OnClientClick="Popup.show('simplediv');return false;" />

OnClientClick 事件当我写返回 false 时它没有触发 GridView 的RowCommand 事件

【问题讨论】:

  • 我不确定,所以我不会把这个作为答案,但我相信返回 false 会取消回发事件。

标签: c# javascript jquery


【解决方案1】:

删除返回false;那么它应该可以正常工作。

【讨论】:

  • 删除 return false 后,div (simplediv) 仅显示几分钟并从屏幕上删除。请任何人帮助我
猜你喜欢
  • 2023-03-18
  • 2019-07-29
  • 1970-01-01
  • 1970-01-01
  • 2012-01-19
  • 1970-01-01
  • 1970-01-01
  • 2017-11-11
  • 1970-01-01
相关资源
最近更新 更多