Validation works locally but fails on web server

M

Mr Marsh

I have a problem with validation on a form that I've created. When I
run the form locally the validation works beautifully, I've got
comparison, required field and regular expression validation set up.

When I try to proceed without entering required information the
summary kicks in and this is done client side - my understanding is
that provided you have EnableClientScript set to true and the browser
supports this then it should occur on the client, otherwise the
validation occurs on the server. Furthermore if the validation is
passed on the client it is re-checked when it hits the server.

The problem arises when I post the .aspx files and the .dll to my
webspace. The validation is not consulted which allows me to leave
fields blank that I'm forced to fill in when I run the form locally.

I'm still very much beginning my journey with asp.net and certainly
wouldn't rule out a school boy error!

I'm using Visual Studio and writing the code in c#.

Thanks very much - peter
 
G

Giorgio Parmeggiani

Hi
The problem arises when I post the .aspx files and the .dll to my
webspace. The validation is not consulted which allows me to leave
fields blank that I'm forced to fill in when I run the form locally.

You are sure that your webspace has correctly installed the "aspnet_client"
directory?

Hi
Giorgio
 
P

Peter Marsh

Hi Giorgio, thanks for the advice, there was no aspnet_client on the
webserver so I copied it's contents from my machine and hey presto it
works - superb stuff, thanks very much
 

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,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top