J
Jorge Luzarraga C
Hello,
I have a Web Form which has two imagebuttons (Save and Cancel). I´d like to
show the user a confirm dialog whenever he clicks on the Cancel Button and
based on his answer to this confirmation continue with the postback or
cancel the action.
How could I do that?
Whenever the user clicks on the cancel buttton I get the dialog but no
matter what answer the user gives I still get a postback.
btnCancelar.Attributes.Add("onclick","event.cancelBubble = !confirm('¿Desea
Cancelar la Edición de la Prima?');");
TIA,
Jorge Luzarraga
I have a Web Form which has two imagebuttons (Save and Cancel). I´d like to
show the user a confirm dialog whenever he clicks on the Cancel Button and
based on his answer to this confirmation continue with the postback or
cancel the action.
How could I do that?
Whenever the user clicks on the cancel buttton I get the dialog but no
matter what answer the user gives I still get a postback.
btnCancelar.Attributes.Add("onclick","event.cancelBubble = !confirm('¿Desea
Cancelar la Edición de la Prima?');");
TIA,
Jorge Luzarraga