How many types of validation controls provided by ASP.Net


=> There are six main types of validation controls.

i.) RequiredFieldValidator :- It is used when you do not want the container to be empty. It checks if the control has any value or not.

ii.) RangeValidator :- It checks if the value in validated control is within the specified range or not. 

      Example :-
     TxtCustomerCode should not be more than eight digit length.

iii.) CompareValidator :- Checks if the value in controls matches some specific values or not. 
      
      Example :-
       Textbox text pie should be equal to 3.14

iv.) RegularExpressionValidator :- Checks if the value matches a specific regular expression or not.

v.) CustomValidator :- Used to define User Defined validation.

vi.) Validation Summary :- Displays summary of all current validation errors on an ASP.NET page.

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2019 HART™ is a registered trademark.