Validation works locally but fails on web server

  • Thread starter Thread starter Mr Marsh
  • Start date Start date
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
 
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
 
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
 
Back
Top