Hi there,
I have a form coded in ASP.NET and currently the validation is done using asp.net server controls which is not working fine, so we have decided to remove all ASP.NET validation controls. Use JavaScript to do client-side validation when Submit button is clicked.
If the Form is valid, then process the form, put form data into database. The code to put the form data into database is already in the code-behind page of the form. I just don't know how to call Javascript function to do client-side validation and then pass
the control to ASP.NET function in the code-behind page to process the form.
E.g.
<asp:Button OnClick="ProcessForm" OnClientClick="ValidateForm()"
Text="Click Me" runat="server" />
Please explain me how should I do this by giving me an example.
Thanks,
Joe
Go to the complete details ...