ASP.Net(Firefox)的“图像"按钮中的问题 [英] Issue in Image button of ASP.Net(Firefox)

查看:111
本文介绍了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 =&返回确认(&#39;您确定要删除邮件吗?&#39;);" & 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.

&lt;asp:imagebutton id=&quot;ImageButtonSubmit&quot; runat=&quot;server&quot; ImageURL=&quot;images/delete.jpg&quot; onclick=&quot;submit_button&quot; OnClientClick=&quot;return confirm(&#39;Are you sure you want to delete the messages?&#39;);&quot; &gt;&lt;/asp:imagebutton&gt;</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屋!

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