I have a compare validator to validate an entry of course. And so, I set my compare validator to validate a textbox and its type to DOUBLE. Even if I input a double value (i.e. 150.24) on the text box, still the page cannot proceed on the next statement because the error message of the validator always display. Can anyone help me please.
It would help if you showed the code.
Compare validator is usually used to compare to different controls. Like, password and confirm password. Use a compare validator to make sure they are the same. Post some code and we can try to help a bit further
Yes, a Compare Validator can be used to compare the values of 2 controls. However, it can be used to do a data type check against 1 control, by setting the Operator property to DataTypeCheck. The ControlToCompare and ValueToCompare properties are ignored when this operator is used.
thanks…i forgot to set the datatypecheck property of my comparevalidator.