The example here is this article is slightly different, as I’ll bind the Grid View control to a database table using Sql Data Source.There are few myths about Sql Data Source and there are talks about its limitations. You can easily bind it with a database table and later bind it to a Grid View control.Yes, you can attach a Drop Down List to the Sql Data Source control. Remember, client validations are not fool proof and you cannot rely on these scripts only. Always add server side scripts along with client scripts to prevent any breach while submitting form data. The Java Script class presented here makes the form validations many times easier.The script has a catalog of almost all the common validation types built-in.
Each field in the form can have zero one or more validations. More info & downloads where Do My Validation One() and Do My Validation Two() are custom functions for validation.
For example, you can have an input field that should not be empty, should be less than 25 chars and should be alpha-numeric. In some dynamically programmed pages, it may be required to change the validations in the form at run time.
It is very important to validate the data supplied by the user through a form before you process it. In the following examples, a Java Script function is used to check a valid date format against a regular expression.
Among various kind of data validation, validation of date is one. Later we take each part of the string supplied by user (i.e.