CompareValidator won't validate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have added a CompareValidator to my .NET 2.0 web page and told it to
validate against Integers.

I set the ControlToValidate, the Text, Display (tried both Static and
Dynamic),the ErrorMessage, theType (integer), yet it still let's the value
'2233mm' go through.

What else do I need to do?
 
cashdeskmac has brought this to us :
Hi,

I have added a CompareValidator to my .NET 2.0 web page and told it to
validate against Integers.

I set the ControlToValidate, the Text, Display (tried both Static and
Dynamic),the ErrorMessage, theType (integer), yet it still let's the value
'2233mm' go through.

What else do I need to do?

set Operator to DataTypeCheck

Hans Kesting
 
Found the problem: I had a typo in the ValidationGroup property (one letter
was uppercase, it should have been lowercase).
 
Back
Top