Groups | Blog | Home
all groups > asp.net > december 2004 >

asp.net : ASP net client validation not working


Tom
12/14/2004 11:54:19 PM
I have created a new site, using asp.net c#. My pages contain client
side validation to validate the users input. On my local machine this
works fine, but when I moved my site to the test server, the
validation don't want to execute. If I view source on the page I can
see the java script is created, but it don't execute.


I'm browsing to the site in IE, so it is not a browser problem and the
validtation works on other sites on the same server.


PLs help
Patrick Olurotimi Ige
12/15/2004 2:24:08 AM
Tom did enabling jscript work for you?
Patrick



*** Sent via Developersdex http://www.developersdex.com ***
Juan T. Llibre [MVP]
12/15/2004 8:39:40 AM
To complete that, if the aspnet_client folder isn't there,
or if the files have been deleted or corrupted, run

aspnet_regiis.exe -c

to install the client side scripts to the
aspnet_client subdirectory of each IIS site directory.



Juan T. Llibre
===========
[quoted text, click to view]

Dan Bass
12/15/2004 12:26:44 PM
Tom,

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


[quoted text, click to view]

charmis
12/15/2004 2:53:55 PM
Hi Tom
I think javascript may be not enabled in your browser in test server.

visit this link: http://dev.cybersessions.com/testbrow/javascript-IE55.html

regards
charmis

[quoted text, click to view]

GP
12/15/2004 3:17:05 PM
I had the same problem earlier so I copied aspnet_validation from my local
(validation working Pc) to the server it was working for a month..this
morning validation stopped firing.I checked files are exactly same..I am able
to access webvalidation.js script file in test server from my pc using the
link...
Does anything changed becos of security patches that microsoft released last
week.
any help is appreciated.
Thanks
GP

[quoted text, click to view]
Patrick Olurotimi Ige
12/15/2004 5:19:01 PM
HI GP,
Run aspnet_regiis.exe -c from the command.
It will fix it..
Patrick




*** Sent via Developersdex http://www.developersdex.com ***
GP
12/16/2004 10:43:06 AM
We ran this command ..command ran fine..but still the same problem..Save
buttons save without checking any validation in the client side.
Any help in this problem is greatly appreciated.
Thanks
GP

[quoted text, click to view]
Patrick Olurotimi Ige
12/16/2004 2:24:01 PM
GP,
Now try running this command to re-register it..
aspnet_regiis.exe -i
aspnet_regiis.exe -r
GDLCUK..
Patrick
** if error persists post it *




*** Sent via Developersdex http://www.developersdex.com ***
Ravichandran J.V.
12/18/2004 4:25:18 AM
Check the settings in the Tools->Internet Options->Security>Custom
Level->Scripting of your IE. Enable Java scripting in the browser and it
will work.

with regards,


J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
wolfeitz NO[at]SPAM gmail.com
1/20/2005 8:16:51 AM
You guys are AWESOME!

Just for searchability, I was running ASP.NET 1.1. Pages with
validation controls were working perfectly on my localhost however when
I posted to production I recieved errors. The fix mentioned above
worked perfectly, thank you!
AddThis Social Bookmark Button