Do you know that? 9% jobs posted on Elance are for Admin Support next

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.