Multiple choice technology web technology

What control is used to validate that two fields are equal?

  1. RequiredFieldValidator

  2. RegularExpressionValidator

  3. CompareValidator

  4. The equals() method of the field.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The CompareValidator control is specifically designed to validate that two fields (like password and confirm password) are equal. RequiredFieldValidator checks for non-empty values, RegularExpressionValidator validates patterns, and there is no equals() method on fields - this is a concept from programming, not ASP.NET validation controls.