Validators not validating anymore. ??

S

ShaneFowlkes

For some reason, my validator controls stopped working when a form posts.
They seems to work on fields that lose focus but if I submit a form with all
empty fields, not of the required validators catch it and this results in
runtime errors with my code.

It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS
several times and I even re-registered the NET service using this at the
command prompt:
c:\windows\microsoft.net\framework\v2.0.50727>aspnet_regiss -i

The aspnet_client folder also does exist on the server.

Any ideas?
 
M

MSDN

Are you sure that your submit button's causes validation property is set to
true.
Also always check all inputs again in code behind or some other layer to
prevent errors.
Also what if the client turned JavaScript off. < Another problem.
what do you do then.

SA
 
S

ShaneFowlkes

Yep. The button does cause validation. I typically do server side edits in
addition to the validators. But I still need and want to figure out why
they quit working.....
 
M

MSDN

Could it be SmartNavigation or some other JavaScript clashing with it.
Is JavaScript enabled on the client.
Does it work or not work from all clients.

SA
 
S

ShaneFowlkes

Yes. I'm at a complete loss. JS is enabled. Same behavior on multiple
machines. I deleted and recreated the site in IIS. I cleared my IE cache.
It's as if my Page.IsValid = True is totally ignored......
 
M

MSDN

Very strange.
Can you create one simple page with just a textbox, required field Validator
and a button and see if it does the same thing in a new web project?
and see what happens.

SA
 
S

ShaneFowlkes

very very strange.

I recreated one of the RequiredValidators (1 of 10) and that one new one
works. The other nine still don't. What's even stranger is that the other
types like the Range and Expression validators still work. I guess I'll
recreate all of the Requireds......
 
S

ShaneFowlkes

[slaps forehead!!]

Some how, all of the existing ones were set to enabled=false!

D'oh!. I don't know how this happened.....oh well.

Sorry and thanks.
 
M

MSDN

Glad to hear that you figured it out.

SA


ShaneFowlkes said:
[slaps forehead!!]

Some how, all of the existing ones were set to enabled=false!

D'oh!. I don't know how this happened.....oh well.

Sorry and thanks.


ShaneFowlkes said:
very very strange.

I recreated one of the RequiredValidators (1 of 10) and that one new one
works. The other nine still don't. What's even stranger is that the
other types like the Range and Expression validators still work. I guess
I'll recreate all of the Requireds......
 

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,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top