Which two properties are there on every validation control?

Answer Posted / ashish tiwari

Validator Control Basics

All of the validation controls inherit from the base class
BaseValidator so they all have a series of properties and
methods that are common to all validation controls. They
are:
? ControlToValidate - This value is which control the
validator is applied to.

? ErrorMessage - This is the error message that will
be displayed in the validation summary.

? IsValid - Boolean value for whether or not the
control is valid.

? Validate - Method to validate the input control and
update the IsValid property.

? Display - This controls how the error message is
shown.

Comments on tiwariaj@yahoo.co.in ...

Ashish Tiwari
Software Programmer
I Media Corp. Ltd
Mahape,Navi Mumbai.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain server control extensibility with reference to asp.net 2.0 ?

550


What are web server controls in asp.net?

556


How to implement role based security in asp.net mvc? : Asp.Net MVC

438


What are the advantages of the code-behind feature?

544


Which is the parent class of the ASP.NET server control?

544






What is the difference between user control and custom control?

486


What symbol would you use to denote, the start of a code block in aspx views?

573


Where you store Connection string in "Web.Config" file in ASP.NET?

586


Do session use cookies in asp net?

498


What is custom events? How to create it?

627


How do active server pages work?

550


Difference between application events and session events

596


About CLR, reflection and assemblies?

1545


What is custom attribute? How to create?

545


How could you modify xaml content from javascript?

517