|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RE: java script error on postbackhowever 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 Show quoteHide quote "Cosimo Galasso" wrote: > 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(":"); I solved the problem with Aspnet_regiis.exe.
Probably asp.net was not installed prooperly on my server machine. Show quoteHide quote "ShepardBerry" wrote: > 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" wrote: > > > 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(":"); I solved the problem with the command line tool Aspnet_regiis.exe
Probably asp.net was not properly installed in iis. Hi Show quoteHide quote "ShepardBerry" wrote: > 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" wrote: > > > 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(":");
Validation Summary Control not displaying MessageBox on web server
User Control, vanishes click on TreeNode Capturing event from other custom control within another custom control Which event? DataList inside a datalist. Free TreeView Controls ? Treeview control in VS2003 Re: Dynamic Sizing Based Upon the Parent Element's Width About the <Asp:Image> |
|||||||||||||||||||||||