删除确认无效 [英] delete confirmation not working
本文介绍了删除确认无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:ImageButton ID="ibtnDisable" runat="server" CommandName="Delete" Height="16px" ImageUrl="~/Images/trash.png" onclientclick="return confirm('Do you want to disable subcategory?')" Width="16px" ToolTip="Disable" />
当用户点击取消按钮时,行被删除..这不是这个正确的格式????
When a user click the cancel button the row is deleted..isn't this correct format????
推荐答案
试试这个.. :)
try this.. :)
<asp:imagebutton id="ibtnDisable" runat="server" commandname="Delete" height="16px" imageurl="~/Images/trash.png" onclientclick="if(confirm('Do you want to delete?')) alert('Data Deleted!'); else alert('Delete Process suspended!')" width="16px" tooltip="Disable" xmlns:asp="#unknown" />
尝试使用
try with
OnClientClick="if (!confirm('Do you want to disable subcategory?')) return false;"
这篇关于删除确认无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文