web form input validation

J

John Slate

I have built a simple web form that uses input validation. I use the
EnableClientScript option to produce a javascript alert box when input
errors occur. The only validation is a password confirmation which uses
a compare validator and a validation summary. On my development server,
this form performs as designed. However, when deployed on a live server
the input validation no longer works. I am accessing both live and
development servers from the same browser on the same machine. Any
suggestions as to why validation works from one and not the other?
Thanks!
 
D

Dan Bass

John,

A common problem...
All you need to do is insure that the "aspnet_client" folder, usually in the
Inetpub\webroot, is copied into the root folder of your project. To confirm
this, check the "spnet_client\system_web\1_1_4322" folder you've copied
contains "WebUIValindation.js".

Thanks.
Dan
 
J

John Slate

It appears that this action has caused a problem in the postback
mechanism. Even though the validation scripts now work, the submit
button on the form no longer submits the page. Any ideas?
 
D

Dan Bass

I'm assuming you know the validators need to be true in order for any post
back to occur?
Validators act on the client side and must be all fulfilled before the page
will post back as a result of a server site control event.
 

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

Top