C
chrislewis
There have been numerous references to a bug in .NET Framework 1.1, on
Windows 2000 that causes <form> tags within user controls to be given an
invalid (i.e. not compatible with javascript) id (the id contains a colon
':' character that cannot be interpreted by javascript. (See post on
21/07/2003 subject 'Error Expected ';' in .NET Framework').
The offending code looks like this:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["_ctl1:Form1"];
}
else {
theform = document._ctl1:Form1;
----------------------------^ this colon causes javascript error
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
The reply to this post suggests going to a forum thread on www.asp.net.
However, I would like to know what the Microsoft position on this is? Is
there a place within a Microsoft site where we can find an 'official' fix?
I need the fix very urgently!!
Thanking you, in anticipation.
Chris Lewis
Windows 2000 that causes <form> tags within user controls to be given an
invalid (i.e. not compatible with javascript) id (the id contains a colon
':' character that cannot be interpreted by javascript. (See post on
21/07/2003 subject 'Error Expected ';' in .NET Framework').
The offending code looks like this:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["_ctl1:Form1"];
}
else {
theform = document._ctl1:Form1;
----------------------------^ this colon causes javascript error
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
The reply to this post suggests going to a forum thread on www.asp.net.
However, I would like to know what the Microsoft position on this is? Is
there a place within a Microsoft site where we can find an 'official' fix?
I need the fix very urgently!!
Thanking you, in anticipation.
Chris Lewis