Validation Controls in ASP.NET using VB.NET

In this article we will learn about the different type of validation controls in ASP. NET.
  • 2020

In this article we will learn about the validation controls in ASP. NET.

Validation Controls

Validation controls are used to validate the data of an input control or a validator is a control that checks one input control for a specific type of error condition and displays a description of that problem. toolbox is the area when validation and other controls existed. These are the following validation controls.

validation-control.gif
 

Figure 1.

 Pointer: Pointer are used to point the control. If we drag any other control on form it causes to create that control on form but pointer does not create any control on form.

RequiredFieldValidator: RequiredFieldValidator are used to ensures that the user does not skip or blank an entry of the control.

CompareValidator: CompareValidator are used to compare the entry value of one control to another control using comparison operator (less than, equal to, greater than, and so on).

RangeValidator: Checks that a user's entry is between specified lower and upper boundaries. You can check ranges within pairs of numbers, alphabetic characters, or dates. Boundaries can be expressed as constants.

 RegularExpressionValidator: Checks that the entry matches a pattern defined by a regular expression. This type of validation allows you to check for predictable sequences of characters, such as those in social security numbers, e-mail addresses, telephone numbers, postal codes, and so on.

CustomValidator: Checks the user's entry using validation logic that you code yourself. This type of validation allows you to check for values derived at run time.

ValidationSummary: Displays the validation errors in summary form for all of the validators on a page.

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.