Saturday 1 October 2011

What types of validation controls are provided by ASP.NET?


There are six main types of validation controls:
  RequiredFieldValidator - It checks whether the control have any value. It’s used when you want the control should not be empty.
 RangeValidator - It checks if the value in validated control is in that specific range. Example txtCustomerCode should not be more than eight length.
  CompareValidator - It checks that the value in controls should match some specific value. Example Textbox TxtPi should be equal to 3.14.
  RegularExpressionValidator - When we want the control value should match with a specific regular expression.
  CustomValidator - It is used to define user-defined validation.
  ValidationSummary - It displays summary of all current validation errors.
  

No comments:

Post a Comment