Click here to Skip to main content
15,913,090 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

I think this would be helpful. check link...

JQuery Confirm Box[^]
 
Share this answer
 
I would use jQuery UI modal dialog:

http://jqueryui.com/dialog/#modal-confirmation[^]

to click event on "Yes" just add something like this:
JavaScript
"Yes": function() {
 window.location = "nextpage.aspx";
},
Cancel: function() {
 $( this ).dialog( "close" );
}
 
Share this answer
 
add reference system.windows.form
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Jun-13 13:45pm    
It does not add any references! This is a fake answer, as your other answers.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900