javascript - I want to show a message with 'yes' and 'no' button in ASP.net on button click if some condition is true -


I want to show a message with the code 'yes' and 'no' button when some condition is correct in the codebehind .. and if the user clicks, yes, then a piece of code will execute in another way, it will not happen.

For example:

  button_click () {if (condition == true) {popup a yes and not with msg (user click 'yes') {then Some code ...}}}    

Add your code to this line: < / P>

  button. OnClientClick = "If (Confirm! ('Do you want ...')) Return;;;;;;;;;    

Comments