java script error on postback

C

Cosimo Galasso

I get a java script error on Internet Explorer when changing the index of a
drop down list control inside a form.
The error is: __EVENTTARGET is null or is not an object.

The java script code is auto generated by the framework library, and the
error is in the following function:


<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

The error is on the line: theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
 
S

ShepardBerry

Did you ever figure out what is going on here? I'm getting the same error
however it's only when using the WebBrowser control. The actual IE page by
itself doesn't give me the error.

Thanks for any help.
Shepard
 
C

Cosimo Galasso

I solved the problem with Aspnet_regiis.exe.
Probably asp.net was not installed prooperly on my server machine.

ShepardBerry said:
Did you ever figure out what is going on here? I'm getting the same error
however it's only when using the WebBrowser control. The actual IE page by
itself doesn't give me the error.

Thanks for any help.
Shepard

Cosimo Galasso said:
I get a java script error on Internet Explorer when changing the index of a
drop down list control inside a form.
The error is: __EVENTTARGET is null or is not an object.

The java script code is auto generated by the framework library, and the
error is in the following function:


<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

The error is on the line: theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
 
C

Cosimo Galasso

I solved the problem with the command line tool Aspnet_regiis.exe
Probably asp.net was not properly installed in iis.

Hi

ShepardBerry said:
Did you ever figure out what is going on here? I'm getting the same error
however it's only when using the WebBrowser control. The actual IE page by
itself doesn't give me the error.

Thanks for any help.
Shepard

Cosimo Galasso said:
I get a java script error on Internet Explorer when changing the index of a
drop down list control inside a form.
The error is: __EVENTTARGET is null or is not an object.

The java script code is auto generated by the framework library, and the
error is in the following function:


<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

The error is on the line: theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top