Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET 1.1 validation client script - confusing difference on different machines

Reply
Thread Tools

ASP.NET 1.1 validation client script - confusing difference on different machines

 
 
Pete Beech
Guest
Posts: n/a
 
      08-25-2004
Hi,
We have an ASP.NET 1.1 webapp, deployed on an integration and a
production server - exactly the same code. One of the

pages has client side validation script, using the validation
Webcontrols. The HTML rendered out from production is

different to that from integration, although they are both running
ASP.NET 1.1 (verified using aspnet_regiis -lk, looking

in IIS mappings, etc).

Apart from minor (but still puzzling) differences in syntax and
formatting, the page from our local machines and

integration has client script like this:

------------------------------
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if (typeof(Page_ValidationVer) == "undefined")
alert("Unable to find script library
'/aspnet_client/system_web/1_1_4322/WebUIValidation.js'. Try placing
this

file manually, or reinstall by running 'aspnet_regiis -c'.");
else if (Page_ValidationVer != "125")
alert("This page uses an incorrect version of
WebUIValidation.js. The page expects version 125. The script

library is " + Page_ValidationVer + ".");
else
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
------------------------------


But the page from production has client script rendered out like this:


------------------------------
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if ((typeof(Page_ValidationVer) != "undefined") &&
(Page_ValidationVer == "125"))
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
------------------------------


Basically, the production one has no alerts when the client script
isn't found or is the wrong version.

Can anyone explain what is causing this change? Is there a patch or a
setting that stops the alerts being rendered?

(I compared machine.config on both machines, and they are identical.)


Hope someone can help,
Cheers,
Pete Beech
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Confusing difference in raw versus shared_ptr behavior w/ static initializers Rudi Cilibrasi C++ 6 11-06-2011 02:53 AM
running same script on same data on two different machines -->different result Christopher Brewster Python 5 11-14-2008 08:19 PM
Client side script after client side validation with asp.net 2.0 Boss302 ASP .Net 0 11-21-2006 08:43 AM
different behavior on different machines, same JRE/IE Johnny Ruin Java 5 03-15-2006 08:51 PM
Response.Expires=0 have different effect on different machines, need urgent help Jenny Javascript 1 05-14-2004 05:24 PM



Advertisments