Hi,
Ques Which two properties are on every validation control ?
Validation Control
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 24, 2012, 4:19 AM EDT
1.Control to Validate
2.Error Message
Thanks
SenthilkumarRank #387 · 6.5K reputationPosted Mar 24, 2012, 8:31 AM EDT
ASP.Net provides number of validation control to validate the input from the user in the web pages.
It will reduce and simplifies the work of developers.
As you know there are several types of validation control.
The above controls will have two common properties.
For example,
Here i want to make it as mandatory field in the web page. The validation controls come to the picture here.
Here i have to associate the control which needs to be validated and when the field value is not entered, the message has to be displayed. So ErrorMessage attribute is common.
The two properties are common:
ControlToValidate
ErrorMessage
I hope this will help you to understand.
If it is useful then mark it as "Accepted Answer"