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 is a .xap file? Explain with an example.

0 Answers  


What does aspnet_regiis -i do ?

1 Answers  


What's the ASP.Net Application life cycle?

0 Answers   Wipro,


wt is repeater control and wt is datalist control and wt defferences these two? i want some code in datalist?

1 Answers  


Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

0 Answers  






Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

3 Answers   HCL, Wipro,


What is cache in asp net?

0 Answers  


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

0 Answers   Siemens,


What are two ways that you can set the minimum and maximum values for a rangevalidator? When would you use each technique?

1 Answers  


can i call the java script to code behind file?if yes how?

4 Answers   Wipro,


What is the difference between pathparam and queryparam?

0 Answers  


What are the various types of authentication?

1 Answers  


Categories