469,964 Members | 1,681 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

CompareValidator not firing

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
Nov 19 '05 #1
4 1785
Hi,

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

Neven

"MattB" <so********@yahoo.com> wrote in message
news:3b*************@individual.net...
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

Nov 19 '05 #2
Neven Klofutar wrote:
Hi,

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

Neven

"MattB" <so********@yahoo.com> wrote in message
news:3b*************@individual.net...
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



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
Nov 19 '05 #3
A CompareValidator will only fire is something is entered into the TextBox.
If you also require a value to be entered add a RequiredFieldValidator.

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


Nov 19 '05 #4
That was it (duh!). Thank you!

Matt

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

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sjaakie Helderhorst | last post: by
4 posts views Thread by Axel Dahmen | last post: by
1 post views Thread by Ron Weldy | last post: by
1 post views Thread by R.A.M. | last post: by
1 post views Thread by R.A.M. | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.