Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

How many types of validation controls are provided by ASP.NET? Explain them.

5 Types of validation control exists:

  • RequiredFieldValidator:To enforce a user to fill a particular field before submitting the form. This is done when the field is a mandatory input .e.g.: username & password
  • RangeValidator:To validate if the user input fits within a range of lower and upper limits.
  • CompareValidator:This is to compare the user input against other existing value.
  • RegularExpressionValidator:This is to ensure that the use input is as per the expected pattern. e.g.: Phone number, emails
  • CustomValidator:Custom validator allows developers to create their own validators based on their logics. This could be a mix of other validators.

Do you know that?

Clients search Elance for online hires over 6.1M times each year. That's 696 times per hour Next