Validating user input asp net Teen vide chat site
To create a validation group, you should put the input controls and the validation controls into the same logical group by setting their Validation Group property.
NET Web API does not utilize the request validation feature to sanitize user input.
You will need to add this protection manually if any input will be used in HTML output.
The validation control classes are inherited from the Base Validator class hence they inherit its properties and methods.
Therefore, it would help to take a look at the properties and the methods of this base class, which are common for all the validation controls: The Regular Expression Validator allows validating the input text by matching against a pattern of a regular expression.
The following example describes a form to be filled up by all the students of a school, divided into four houses, for electing the school president.