A
Alex Shirley
I'm probably being ignorant here but I've done this:
a)Created a aspx form which contains a radio button list as well as a
submit button
b)Set the radio button list to autopostback, the idea being that the
form will change when a radio button is hit (haven't coded this in
yet). This is the only control set for this behaviour.
I'm experiencing the following:
When compiling the page IE comes up with "Line 149: Char 29, Error:
Expected ‘;'
Code:0
On inspection of the html code generated it appears to be referring to
the following JavaScript that must have been generated by ASP.NET:
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
theform = document.forms["_ctl10:frmSubscribe"];
}
else {
theform = document._ctl10:frmSubscribe;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
and
"theform = document._ctl10:frmSubscribe;"
appears to contain the error in question (missing .
Has anybody experienced this in Visual Studio 2003 (release version)
and do they know how to get around it (without comprising on browser
compatibility), considering the code is autogenerated.
I think I've covered the necessary, further details and code upon
request
Many Thanks!
Alex
a)Created a aspx form which contains a radio button list as well as a
submit button
b)Set the radio button list to autopostback, the idea being that the
form will change when a radio button is hit (haven't coded this in
yet). This is the only control set for this behaviour.
I'm experiencing the following:
When compiling the page IE comes up with "Line 149: Char 29, Error:
Expected ‘;'
Code:0
On inspection of the html code generated it appears to be referring to
the following JavaScript that must have been generated by ASP.NET:
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
theform = document.forms["_ctl10:frmSubscribe"];
}
else {
theform = document._ctl10:frmSubscribe;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
and
"theform = document._ctl10:frmSubscribe;"
appears to contain the error in question (missing .
Has anybody experienced this in Visual Studio 2003 (release version)
and do they know how to get around it (without comprising on browser
compatibility), considering the code is autogenerated.
I think I've covered the necessary, further details and code upon
request
Many Thanks!
Alex