Monday, 29 December 2014

How to validate form using javascript?

Page validation using javascript :

 Page_ClientValidate method is used for validation at client side and Page.IsValid is used for server side validation with Validation Controls in ASP.NET.

If page is validated then return true and execute the statements which we written inside { .... } braces.

Ex : function ValidatePage()
               alert(" Your page is validated");

Where "validate" - is the group name of validation controls which is used in ASP.NET Page.

Happy Coding... :)