You must Sign In to post a response.

What attribute must be set on a validator control for the validation to work ? Validate

What attribute must be set on a validator control for the validation to work ?
Validate
ValidateControl
ControlToBind
ControlToValidate


Comments

Author: Kaliss04 Feb 2011 Member Level: Gold   Points : 2

ControltoValidate property has to be set for the validator control should work in asp.net.

The validator control can be used for any types of validation like empty check or we can map any reqular expressions


controltovalidate="NumberTextBox"
enableclientscript="False"
display="Dynamic"
errormessage="Please enter a value."
text="*"
runat="server"/>

Author: Minu04 Feb 2011 Member Level: Gold   Points : 2

Hi,

ControlToValidate property is set on a validator control for the validation to work. It specify the input control to validate.

Author: Paritosh Mohapatra04 Feb 2011 Member Level: Gold   Points : 1

ControlToValidate is a required property for all the validation controls. If ControlToValidate is not set then the following exception will be generated:

The ControlToValidate property of '' cannot be blank.

Author: div04 Feb 2011 Member Level: Gold   Points : 2

hi..

ControlToValidate property is set in validate control.

Author: dontknow04 Feb 2011 Member Level: Bronze   Points : 2

*ControlToValidate is the mandatory property that must be set for Validation controls.

Ex:

Author: jignesh04 Feb 2011 Member Level: Gold   Points : 1

hi ControlToValidate is mandatory property for any validation control


hope this will help you

Author: vipul dumaniya05 Feb 2011 Member Level: Silver   Points : 2

hi

you must have to set

controlToValidate property of validation control

regards

vipul dumaniya


Sign In to post your comments