如何显示带有两个按钮的消息框,然后单击取消 [英] how to show messagebox with two button yes and cancel
本文介绍了如何显示带有两个按钮的消息框,然后单击取消的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何显示消息框是asp.net,带有两个按钮是"和否"
当我单击是"时,我想转到下一页
当我单击否时,我想转到同一页面.
how to show a message box is asp.net with two button yes and No
when i click on yes i want to go to next page
when i click on no i want to go to same page
推荐答案
我认为这会有所帮助.检查链接...
JQuery确认框 [
I think this would be helpful. check link...
JQuery Confirm Box[^]
我会使用jQuery UI模式对话框:
http://jqueryui.com/dialog/#modal-confirmation [
I would use jQuery UI modal dialog:
http://jqueryui.com/dialog/#modal-confirmation[^]
to click event on "Yes" just add something like this:
"Yes": function() {
window.location = "nextpage.aspx";
},
Cancel: function() {
(> ).对话框(" ); }
( this ).dialog( "close" ); }
这篇关于如何显示带有两个按钮的消息框,然后单击取消的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文