form.__EVENTTARGET is undefined

Last post 3/13/2009 3:56:40 AM by Chris Pietschmann. 2 replies. << Back to Web.Maps.VE v2.0 General
2/19/2009 12:52:40 AM
ctadlock

form.__EVENTTARGET is undefined

I regularly get this scripting error on my site on a fresh page load. It happens randomly, but when it does all the scripts on the page are broken.

form.__EVENTTARGET is undefined
Sys$WebForms$PageRequestManager$_doPostBack("ctl00$ContentPlaceHolderBody$GeoEditControl$Map$UP_LB", "")ScriptRe...=7be9cc22 (line 482)
(?)()()ScriptRe...=7be9cc22 (line 47)
_triggerAsyncPostback()ScriptRe...t=5842e49 (line 10)
_pageLoadingHandler()()ScriptRe...t=5842e49 (line 10)
_map_OnLoad()(Object)ScriptRe...t=5842e49 (line 47)
(?)()()ScriptRe...=7be9cc22 (line 47)
CreditsFor()()mapcontr...shx?v=6.2 (line 113)
CreditsFor()()mapcontr...shx?v=6.2 (line 113)
initialize()()ScriptRe...t=5842e49 (line 33)
Sys$Component$endUpdate()ScriptRe...=7be9cc22 (line 2587)
(?)()()geoedit.aspx (line 372)
(?)()()ScriptRe...=7be9cc22 (line 2399)
Sys$_Application$_doInitialize()ScriptRe...=7be9cc22 (line 4280)
(?)()()ScriptRe...=7be9cc22 (line 47)
form.__EVENTTARGET.value = eventTarget;


I believe this is a timing issues with ASP.NET. I have some code in the MapLoaded event, and I think this extra time it takes to call back to the server is causing the ASP.NET code to break because it isnt done yet. See this thread for an explanation...

http://www.velocityreviews.com/forums/t513603-recieving-error-theform-is-undefined.html

Has anyone else seen this? Is there anything I can do to prevent this?

Thanks
CT

 
2/19/2009 1:02:46 AM
ctadlock

Re:form.__EVENTTARGET is undefined

Ive confirmed this happens due to the code in the MapLoaded event. If I move the code to the ASP.NET Load method I do no get this error.

CT
3/13/2009 3:56:40 AM
Chris Pietschmann

Re:form.__EVENTTARGET is undefined

Do you have a code sample that demonstrates this error that you can send me? I'm not sure what code your using that's causing this, so I am unable to duplicate the issue. Thanks.