Which two properties are there on every validation control?

Answers were Sorted based on User's Feedback



Which two properties are there on every validation control?..

Answer / deva

ControlToValidate and Text or ErrorMessage properties

Is This Answer Correct ?    7 Yes 1 No

Which two properties are there on every validation control?..

Answer / 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

More ASP.NET Interview Questions

What are the major built-in objects in ASP.NET?

0 Answers   MindCracker,


What is rich control in asp.net?

0 Answers  


Explain the difference between asp and asp.net?

0 Answers  


What is a response cookie?

0 Answers  


What are the media types of http requests and response?

0 Answers  






What is the difference between page directive include and action tag include?

0 Answers  


When is the ViewState available during the page processing cycle ?

6 Answers   Siebel,


How do I open an ashx file?

0 Answers  


can we store textbox and com components in viewstate?

4 Answers   Microsoft,


How do you store a value in viewstate and retrieve them?

0 Answers  


What does uri mean?

0 Answers  


What is page request in asp.net?

0 Answers  


Categories