473,378 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

ASP net client validation not working

Tom
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

Nov 19 '05 #1
10 3976
Hi Tom
I think javascript may be not enabled in your browser in test server.

visit this link: http://dev.cybersessions.com/testbro...ript-IE55.html

regards
charmis

"Tom" <sh*****@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 19 '05 #2
Tom did enabling jscript work for you?
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3
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
"Tom" <sh*****@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 19 '05 #4
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
===========
"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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
"Tom" <sh*****@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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


Nov 19 '05 #5
GP
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

"Juan T. Llibre [MVP]" wrote:
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
===========
"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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
"Tom" <sh*****@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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



Nov 19 '05 #6
HI GP,
Run aspnet_regiis.exe -c from the command.
It will fix it..
Patrick


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #7
GP
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

"Patrick Olurotimi Ige" wrote:
HI GP,
Run aspnet_regiis.exe -c from the command.
It will fix it..
Patrick


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #8
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 ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #9
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 ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #10
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!

Nov 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: arc | last post by:
I have a server object that performs zipcode validation based on zipcode entered in the web form. Ideally this should work as follows: Once the zip code is entered in the edit box it should...
1
by: Johny | last post by:
Hi....I have a problem with my asp page, when it have diferent controls and some validation control...but i want to validate just some controls if the user select a checkbox i have to control just...
2
by: Dnna | last post by:
I have a table which is bound to an Internet Explorer XML data island. I'm using ASP.NET's client-side validators for an input field in the table. The problem is that if the input fields are in...
1
by: RKay | last post by:
I am using the ValidationSummary control to report form errors as a popup using ShowMessageBox="True". Everything is fine on my local Win2k/IIS5 box but when I publish my code to a virtual host...
2
by: Fourge | last post by:
Hi, I have run into a very strange scenario. In developing an ASP.NET application on framework version 1.1, I found that certain client-side validation scripts were not being rendered. The...
8
by: John Dalberg | last post by:
I have an aspx page that was developed initially in Dreamweaver as a regular html file. I have added a few textboxes and required validators. The problem is that the client side validation is not...
1
by: Alan Silver | last post by:
Hello, I have just copied a new site up to the production server and have encountered an odd problem. The site uses validation, and this seems to be working fine. For some reason, link button...
0
by: koen | last post by:
Hi! In asp.net (version 1.1) I run into a problem when trying to perform client validation. The error I get on the client-side is : "Error: expected ';'". This problem occurs when I place a...
1
by: swarajtnj | last post by:
Hi, How to solve? validation working IE but not in firefox on asp.net?
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.