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

 Posted by ArticlesMaint on 9/15/2009 | Category: ASP.NET Interview questions | Views: 6294

Answer: -
There are six main types of validation controls: -


It checks whether the control have any value. It is used when you want the control should not be empty.


It checks if the value in validated control is in that specific range. Example TxtCustomerCode should not be more than eight lengths.


It checks that the value in controls should match some specific value. Example Textbox TxtPie should be equal to 3.14.


When we want the control, value should match with a specific regular expression.


It is used to define User Defined validation.

Validation Summary

It displays summary of all current validation errors on an ASP.NET page.

Note: - It is rare that some one will ask step by step all the validation controls. Rather they will ask for what type of validation which validator will be used. Example in one of the interviews i was asked how will you display summary of all errors in the validation control...just uttered one word Validation summary.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response