本文介绍了在Oncommand事件中调用时,模式弹出窗口加载两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我有模式弹出窗口,可以使用Imagebutton在网格内部调用.
在服务器端事件imgView_OnCommand中调用该弹出窗口.但我两次弹出窗口.
< asp:TemplateField HeaderText =" 删除" ItemStyle-Width =" 12%" HeaderStyle-Width =" 12%" > < ItemTemplate > < asp:ImageButton ID =" imgDelete" runat =" 服务器" ImageUrl =" 〜/Images/delete1.jpg" 宽度 =" 20像素" 高度 =" 20px" OnClick =" imgDelete_Click" OnCommand =" imgDelete_Command" CommandArgument =' <% #Eval(" UserId" )% > ' CommandName =" DeleteUser" / > < /ItemTemplate > < HeaderStyle HorizontalAlign =" Center" / > < /asp:TemplateField >
问候
froxy
解决方案
Hi All
I have modal popup which is called inside the grid using Imagebutton.
The popup is called in the server side event imgView_OnCommand. but i get the popup twice.
<asp:TemplateField HeaderText="Delete" ItemStyle-Width="12%" HeaderStyle-Width="12%"> <ItemTemplate> <asp:ImageButton ID="imgDelete" runat="server" ImageUrl="~/Images/delete1.jpg" Width="20px" Height="20px" OnClick="imgDelete_Click" OnCommand="imgDelete_Command" CommandArgument='<%# Eval("UserId") %>' CommandName="DeleteUser" /> </ItemTemplate> <HeaderStyle HorizontalAlign="Center" /> </asp:TemplateField>
regards
froxy
解决方案
这篇关于在Oncommand事件中调用时,模式弹出窗口加载两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!