Validators - DotNet and DataBase

Saturday, 18 August 2018

Validators




ASP.NET validation controls are to monitor the validity of the data supplied by the user.

We have 5 types of validators are available in ASP.Net to achieve different needs.
  1. RequiredFieldValidator.
  2. RangeValidator.
  3. CompareValidator.
  4. RegularExpressionValidator.
  5. CustomValidator.

and  ValidationSummary.

Validation ControlDescription
RequiredFieldValidationKeeps the input control as a required field
CompareValidatorCompares the value of one input control to the value of another input control or to a fixed value
RangeValidatorChecks that the user enters a value that exist in between two specific values.
RegularExpressionValidatorEnsures that the value of an input control matches a specified pattern like email, mobile number etc...
CustomValidatorDevelopers can write their own logic to validate the value supplied by the user.
ValidationSummaryDisplays a report of all validation errors occurred in a Web page


No comments:

Post a Comment

x

Get Updates On

Discussion updates

Straight Into Your INBOX!

Enter your email address to subscribe to this website and receive notifications of new posts by email.