Tengo un botón ASP para eliminar y su 'onclientclick' devuelve confirmar para garantizar la eliminación

I have an ASP button for delete and its 'onclientclick' returns confirm to ensure deletion, but I do something in server and display another confirmation to ensure deletion again. How can I write the second confirm in the same handler of the button?

preguntado el 02 de febrero de 12 a las 11:02

1 Respuestas

utilizado ClientScriptManager.RegisterStartupScript Method to add and script to page on run-time

Respondido 02 Feb 12, 17:02

Yes, but I need the script to be return confirm as I will do some thing according to the return value from confirm.The error is in the 'return' statement in the clientscriptmanager. - lola eldaly

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.