ASP.NET Client side API for validation

I have one form with four textbox and every textbox has requirefieldvalidator. One Button is for send the data to server. it has also event for onclientclick() and server side event onclick(). In client side function I have to ask whether you want further or not? by confirm(). Like

 if (!confirm('Are you sure to Save?')) return false;

But When I press button than This message is show and when pressing ok it goes to server However textboxes are empty and validator gives error message also.

How I stop to go to server when validation is not proper. I have lookout in google that some API is available for validation on client side but I does not get well


From the client-side, you can call Page_ClientValidate() or Page_ClientValidate(group), and then check Page_IsValid field. You can check this out for more information:

Need Your Help

Using C# to convert base30 image from jsignature

c# javascript android image

I need some help about .net method to convert jsignature exported data.

Classic ASP Impersonation problem on IIS7 Windows 2008 server

iis-7 asp-classic impersonation kerberos

I am trying to write to a file on a server (web05) from a classic asp site running on Windows 2008 serer on IIS7 (webadmin). This fails and web05 logs an anonymous logon attempt during the course o...