We have 6 types of asp.net validator available in the ToolBox. Each have specific meaning, we will learn one by one but before i want to talking about client side validation and server side validation. With the help of client side validation we can check the expression like email in client browser so through this we can increase the response time.Lets see the example
Range Validator
Range asp.net validator are used between minimum or maximum value. Lots of property have to set this validator like datatype, operator, Control to validate. So check the example which is given below.
Custom validator
Custom asp.net validator is depend on user choice, here in this video show the even odd expression --seee the full video and create your custom validator.
Regular Expression
Regular asp.net validator check expression which is based on string. Through this string we can check the format of the input field like email contain '@' sign before it, we have some character, number and special symbol like underscore also after this we have domain name. So the email looking like:
^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$
So, this the video and check it, how to use this asp.net validator
Validation summary:
Validation summary asp.net validator show the error message of all validator control in the form of summary. You can take it either on div or popup, depends on you.Required and compare validator
Required asp.net validator is used to define the mandatory field. If it applied on empty field then generate the error message. If this control applied with initial value property then match with input field , if both are match then generate the error message.
In the compare validator, check minimum two field, if both are equal then does not generate error message , its depend on operator which is used by you in the program.