Required Validation Error in IE.

R

Ryan Ternier

We're running a site that has required field validation on the login page.
It works fine on our development / test machines. However, when I upload
this site to our live server i get this error.

In IE, the validation works, but no form ever gets submited. It doesn't even
process the click event of the button. In mozilla, it works 100% (this is
weird because it's usually the oposite).

Any thoughts?
 
J

john morales

Hello Ryan,

just use firefox.

no seriously if the form is not submiting then there is most likely a problem
in the validation. If you disable the validation controls does it work? Verify
that you can get the site working on the live enviroment with no validation
and add validation controls one-by-one until something breaks. fix it, rinse
and repeat.

-john
 
R

Ryan Ternier

Haha, i wish I could just use Firefox.

It works fine with zero validation. I tested each control seperatly, and it
doesn't work at all. It catches controls with the reg-exp's the validation
has, but it won't submit. I think the value is always getting returned as
false to the client.

I think it might have something to do with the way I copied the files over.

Usually when you install .net it puts the validation JS files in the:
Inetpub/wwwroot/aspnet_client/.. folder

I just copied that folder, and moved it to the live server. I'm wondering if
it has something to do with that.

Any thoughts?
 
J

john morales

Hello Ryan,

are you saying that you didnt install the framework on the live server?
 
R

Ryan Ternier

Haha. Of course the frame work is installed. we have over 200 sites running
on this server.
What I did was take the folder containing the JS for the .NET validation
controls and just copy it into the website folder.

This is what it's doing to us:
Demo server / Test Server:
IE - Works
Mozilla- Works

Live Server
IE- doesn't work
Mozilla - Works

What's happening is when any button / form element that causes the form to
submit is clicked, it doesn't submit (ie only). It's as if the validation is
always returning false. In mozilla, it works perfectly.

So I don't really know what the issue is. We're disabeling the Validation
for now, but will need it up later.


/RT
Caffinated Code Monkey
 
J

john morales

Hello Ryan,
to be honest i cannot see why validation would work on one machine and not
on another just by deploying the project. The fact that on mozilla it works
doesnt say anything because by default validators only work clientside on
IE. Check this project on yet another server.
if it works, then there is something wrong on your live configuration. if
it doesnt then you are not deploying correctly..

i dont know what else you could do, but double (triple) check everything.

good luck,
john
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top