Which button was clicked within a form.
-
Hi experts Is there a way to know what button was click within a form? Here is my code: function Form1_onSubmit() { alert("button clicked") } ...
...
This doesn't look like an ASP.NET question to me. If you want to know what button was pressed, create button server controls and handle their click event.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
This doesn't look like an ASP.NET question to me. If you want to know what button was pressed, create button server controls and handle their click event.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Provably I didn't make myself clear,so I will describe exactly what I need to accomplish. On a asp.net page there are 2 buttons(edit and save). I want to validate 2 fields only when the save button is clicked. If edit is clicked, then I don’t want to validate any fields. I thought that using javascript I can identify which button was clicked. If (save button) then validate, else don’t validate. Thank you guys