Validation Not Occuring

K

Kyle

On my Development System, all the page validation controls work fine
(WinXP Pro + SP2, VS.NET 2003, .NET v1.1.4322).

On the Production System, none of the page validation controls are
working (Windows 2000 Server + SP4, .NET v1.1.4322).

If one of the client machines access my Development system, everything
works as it should, so this isn't a client-side or browser issue (IE 6 +
updates).


Anybody have any ideas? I haven't been able to find anything online.

-={ Kyle }=-
 
S

S. Justin Gengo [MCP]

Kyle,

There is an "aspnet_client" folder in iis that has all the validator's
javascripts in them. That may be missing/in the wrong place.

As a side note in case you didn't know on the server side you should always
wrap any code that shouldn't run if not valid in:

If Page.IsValid Then
'---page is valid execute code
End If

If you don't do that then if someone has javascript turned off they will
still make it to the server...

You can't count on client side validation alone.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
G

George Ter-Saakov

I had a similar problem when I had custom validator control on the page and
did not set client validation to false ( I was not supplying JavaScript to
do client validation either).

So check if you have custom validator control and set client validation
property to false.

-------------------------------------------------------------------------------------

Also you might simply have a Javascript error on the page. You will not see
it if the Javascript error notification is turned off in IE. But validation
will not work (Javascript does is not executed as soon as IE had an error on
the page).

George.
 
K

Kyle

I have a combination of validation controls, including custom
validators, on the page.

Should I change 'EnableClientScript=false' for the custom controls only?

-={ Kyle }=-
 
K

Kyle

I checked that already (only thing that came up with my searching) and
the folder exists, with the proper name and files (SmartNav.htm,
SmartNav.js, WebUIValidation.js).

Is it possible that the contents of the files are different?

-={ Kyle }=-
 
G

George Ter-Saakov

Yes,
Other validation controls provide JavaScript to run on the client if you
have EnableClientScript = true (It's actually up to you if you want or not
to do validation on the client.)

For custom validators you must provide it or turn it off by setting
EnableClientScript to false.
Otherwise (from my experience) validation will not work correctly on some
platforms (on some works, on some not).


George.
 

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