Validation controls in ASP DOT NET

What are validation controls? How many validation controls are present in ASP.NET 4.0?

E

Expert

Verified

The Validation controls are responsible to authenticate data of the input control. Every time we provide some input to the application, it carries out validation and displays the error message to user, if validation fails.

Six types of validation controls in ASP.NET 4.0 are as follows:

i. ValidationSummary – It displays the summary of every validation error in the central location.
ii. CompareValidator – It performs the comparison among values contained in the two controls.
iii. RegularExpressionValidator – It ensures which input is according to specified pattern or not.
iv. CustomValidator – It writes our own method to do added validation.
v. RangeValidator- It checks value according to range of the value.
vi. RequiredFieldValidator – It checks either the control is empty or not.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.