473,402 Members | 2,061 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,402 software developers and data experts.

Postbacks dies on our server if using client-side validation!?

This is a follow-up to a question I had yesterday.

Quick summary: our intranet server dies a month or so ago and we had to get
a new one up and running quickly.

Any .net app that ran on the old server was moved over. The catch is that
any of the apps that used client-side validation no longer properly
post-back. And we're not sure why.

In some further testing, I've found that the validation works, but the
postback never happens. So the page is never submitted and, as such, makes
for a rather useless application.

The fix is to turn of javascript and let the validation happen client-side,
but we're stumped as to why this happened.

The proper .js file that .net uses for validation IS being linked to (in IE)
and the file DOES exist on the server.

We're stumped. BTW, these same apps work just fine on our localhost or other
test servers.

-Darrel

--
================================================== ===============
Win prizes searching google:
http://www.blingo.com/friends?ref=hM...nTqhv-2GE1FNtA
Nov 16 '06 #1
4 1128
What was the exact result of the mini-test I gave you?

I can't infer from the response below.

You can answer at the other post if you think it will cause confusion here.


"darrel" <no*****@nowhere.comwrote in message
news:uN****************@TK2MSFTNGP02.phx.gbl...
This is a follow-up to a question I had yesterday.

Quick summary: our intranet server dies a month or so ago and we had to
get
a new one up and running quickly.

Any .net app that ran on the old server was moved over. The catch is that
any of the apps that used client-side validation no longer properly
post-back. And we're not sure why.

In some further testing, I've found that the validation works, but the
postback never happens. So the page is never submitted and, as such, makes
for a rather useless application.

The fix is to turn of javascript and let the validation happen
client-side,
but we're stumped as to why this happened.

The proper .js file that .net uses for validation IS being linked to (in
IE)
and the file DOES exist on the server.

We're stumped. BTW, these same apps work just fine on our localhost or
other
test servers.

-Darrel

--
================================================== ===============
Win prizes searching google:
http://www.blingo.com/friends?ref=hM...nTqhv-2GE1FNtA


Nov 16 '06 #2
What was the exact result of the mini-test I gave you?

Test one: Simple ASPX page. One text box, one required field validator, one
button, one label.

Pressing the SUBMIT button on this page with an empty text box will generate
a client-side validation error. Pressing the SUBMIT button on this page with
a valid text box does nothing in IE (no submission/postback at all).

Test two (your test): Simple ASPX page. One text box, one custom validator
(calling custom javsacript), one button, one label.

Exact same result. When on this particular server, I can get the script
(alert) to fire, but no postback.

-Darrel
Nov 16 '06 #3
Check the permissions on the folder where that .js file resides. It
might not being downloaded to the client machine.

darrel wrote:
This is a follow-up to a question I had yesterday.

Quick summary: our intranet server dies a month or so ago and we had to get
a new one up and running quickly.

Any .net app that ran on the old server was moved over. The catch is that
any of the apps that used client-side validation no longer properly
post-back. And we're not sure why.

In some further testing, I've found that the validation works, but the
postback never happens. So the page is never submitted and, as such, makes
for a rather useless application.

The fix is to turn of javascript and let the validation happen client-side,
but we're stumped as to why this happened.

The proper .js file that .net uses for validation IS being linked to (in IE)
and the file DOES exist on the server.

We're stumped. BTW, these same apps work just fine on our localhost or other
test servers.

-Darrel

--
================================================== ===============
Win prizes searching google:
http://www.blingo.com/friends?ref=hM...nTqhv-2GE1FNtA
Nov 16 '06 #4
Check the permissions on the folder where that .js file resides. It
might not being downloaded to the client machine.
The validation happens. So it's using the .js file. It's just that upon
completion of validation, it doesn't submit the page for postback.

Turning off javascript DOES allow it to postback, so there is something
going on that's fishy. But it doesn't appear to be that the .js file isn't
loading.

-Darrel
Nov 16 '06 #5

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

Similar topics

3
by: John | last post by:
I have an asp.net control which on the first Load of the page has a unique ID something like: _ctl0__ctl1_GroupName__ctl1_ControlName and after the first postback it changes to: ...
19
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set...
1
by: satish.vell | last post by:
Hi, I have a ASP.NET page inside which I toggle the display of a field using javascript. How can I save this display value between postbacks. Here is my code: <pre>
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.