ASP.NET Validation Controls

Questions by showri

Showing Answers 1 - 3 of 3 Answers

Prem Shankar Kumar

  • Feb 6th, 2007
 

Validation controls are the control that validate the form field.By using these control we need not write enough code for all those validation.ASP.NET provides six validation control.They are:-

1. RequiredFieldValidator
2. RangeFieldValidator
3. Comparevalidatior
4. RegularExpressionValidator
5. CustomValidator
6. ValidationSummary

1. RequiredFieldValidator:- This validation control require any text in the give field.It has main two properties:-
a.Controltovalidate:- the property requires which field is to be validate.
b.Errormessage:-This shows the error message when it is violated.

2. Rangefieldvalidator:- This validation control check the range of the field. this control has six properties:-
a.Controltovalidate:- This property shows the field which is to be validate.
b.Errormessage:-This shows the error message when it is violated.
c.maximum range:- this accept the maximum values of the field.
d.minimum range:-This accept the minimum values of the field.
e.Type:-this represent which type of datatype will accept.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions