CompareValidator won't validate

C

cashdeskmac

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?
 
H

Hans Kesting

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
 
C

cashdeskmac

Sorry, Hans, I should also have mentioned that Operator was already set to
DataTypeCheck.
 
C

cashdeskmac

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top