Validating length of textbox
in case extra validation like restricting validation to some of the controls only, that would be decided at the function calling level.
In my windows form projects , i have validated the fields using Boolean method.
Find the below sample screen shot for validating the fields before saving the data Img 3: Validation method Here I have validated the fields using the Boolean method, If all the field values are entered properly it will return true, other wise it will return false and will display an error message.
Server side validation(using various validators or manually validating the input in code behind) is REQUIRED with or without javacript validation.