Found something interesting. On my local server (where the code works)
the form tag on the client side code after the ASPX page has been
processed is:
<form name="Form1" method="post"
action="GradApplication.aspx?Mode=applicantedit&am p;ApplicationID=313"
language="javascript" onsubmit="ValidatorOnSubmit();" id="Form1">
The page on the new server that does not work contains:
<form name="Form1" method="post"
action="GradApplication.aspx?Mode=applicantedit&am p;ApplicationID=1"
language="javascript" onsubmit="if (!ValidatorOnSubmit()) return false;"
id="Form1">
Also, the page that works says:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
The one that doesn't reads:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
(Notice the enclosing brackets arounsd Form1.)
What is going on to cause the same ASP.NET application to produce
different output on two different servers? I checked and they are both
using the latest .NET Runtime (1.1.4322.573).
Thanks!
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!