javascript - How does user confirmation message box work in ASP.Net -
how client know send request server when confirmation box result ok , stay on page if cancelled? also, mechanism different in asp.net , asp.net mvc?
the responses got seem tell me how implement functionality. want know internal working of when user clicks ok/cancel happens internally. how browser come know has proceed server call or close , nothing?
you can use simple confirm box
$("#callconfirm").on("click", function(e) { if(confirm('are sure')) alert('yes'); else alert('no'); });
Comments
Post a Comment