¿Es posible agregar un evento javascript y luego un evento asp.net a un control que se ejecuta en el servidor?
Frecuentes
Visto 27 veces
0
I want to have a button that runs at server but before posting back it should run one or more javascript functions.
¿es posible?
2 Respuestas
1
function runSomeStuff() {
callYourCode();
callSomethingElse();
__doPostBack('btnSave', "Some String To Post Back");
}
contestado el 22 de mayo de 12 a las 16:05
0
Sí, eso es posible.
OnClientClick="return func1();"
remember your function func1() should return bool true/ false. If it returns false then there will be no postback.
contestado el 22 de mayo de 12 a las 16:05
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas javascript asp.net postback or haz tu propia pregunta.
@Marky68 :) Great. If it worked UP Vote & check as correct answer - Ravi Vanapalli