Multiple choice

Which of the following controls is used to ensure that an input value matches a specified pattern?

  1. RegularExpressionValidator

  2. RegularPatternValidator

  3. CompareValidator

  4. CustomValidator

  5. RequiredFieldValidator

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

RegularExpressionValidator control in ASP.NET is used to check the user input based on a pattern that we define using RegularExpression. If the value does not match with the RegularExpression, then an error message is displayed.