ASP.Net(Firefox)的“图像"按钮中的问题 [英] Issue in Image button of ASP.Net(Firefox)
问题描述
< pre lang ="vb">在使用onclick调用子项之前,我想使用OnClientClick显示确认框.使用OnClientClick成功显示确认框,但未使用onclick调用该子项.如何同时使用OnClientClick和onclick?还是有更好的方法来做到这一点?谢谢.
& lt; asp:imagebutton id =& quot; ImageButtonSubmit& quot; runat =&服务器" ImageURL =& quot; images/delete.jpg& quot; onclick =& quot; submit_button& quot; OnClientClick =&返回确认('您确定要删除邮件吗?');" & lt;/asp:imagebutton& gt;</pre>
<pre lang="vb">I would like to display a confirmation box using OnClientClick before calling a sub using onclick. The confirmation box is successfully displayed using OnClientClick but the sub is not called using onclick. How do I use OnClientClick and onclick together? Or is there a better way to do this? Thank you.
<asp:imagebutton id="ImageButtonSubmit" runat="server" ImageURL="images/delete.jpg" onclick="submit_button" OnClientClick="return confirm('Are you sure you want to delete the messages?');" ></asp:imagebutton></pre>
推荐答案
我认为以下给出的链接将对您有所帮助
带有确认的GridView删除 [ http://www.asp.net/data-access/tutorials/adding-client-side-confirmation-when-deleting-vb [
I think the links given below will help you
GridView Delete, with Confirmation[^]
http://www.asp.net/data-access/tutorials/adding-client-side-confirmation-when-deleting-vb[^]
这篇关于ASP.Net(Firefox)的“图像"按钮中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!