CompareValidator not firing

M

MattB

I have a page that has gone through a lot of editing. It has many text
box and validator controls, and one compare validator just isn't working.
I have the control to validate set, and control to compare set, and the
page just behaves like the validator isn't there.
Can anyone give me any ideas on what I need to do to make this work? It
used to work and stopped, and I've even deleted and recreated both the
text control and the validator using both the same and new IDs but with
no luck. Help!

Matt
 
N

Neven Klofutar

Hi,

Maybe your "sumbit" controls are set to >> CausesValidation = False

Neven
 
M

MattB

Neven said:
Hi,

Maybe your "sumbit" controls are set to >> CausesValidation = False

Neven

Good thought, but all the other validators on the page fire (plus I
double-checked).
Any other ideas? It's also got Enabled=True BTW.

Matt
 
B

Brock Allen

A CompareValidator will only fire is something is entered into the TextBox.
If you also require a value to be entered add a RequiredFieldValidator.
 
M

MattB

That was it (duh!). Thank you!

Matt

Brock said:
A CompareValidator will only fire is something is entered into the
TextBox. If you also require a value to be entered add a
RequiredFieldValidator.
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top