ThinkGeo.com    |     Documentation    |     Premium Support

theForm is undefined error

I have added a new form to a VS 2008 ASP.NET project. I have placed the ThinkGeo map control on to the form. When the page loads from my application I get the following error in a popup from inside the VS IDE:


"Microsoft JScript runtime error: 'theForm' is undefined". If is happening in the theForm.onsubmit routine found in the func_GeoResource.axd file generated by the ThinkGeo library.


I am working with the latest beta of the ThinkGeo Web Control and Visual Studio 2008.


I do not know how to proceed.


See attachment.


Thank You


Jeff Watson



219-ThinkGeo_Error.docx (52 KB)

Jeff,  
  
 We couldn’t recreate your problem, can you try the following methods for test.  
  
 1, build a very simple web page with UpdatePanel, see whether it has the same problem.  
 2, deploy your map web site on the IIS and browse it from another computer, see whether it has the same problem. 
  
 Could you let me know the results and also send us your web.config file, maybe we can find something there. 
  
 Thanks, 
  
 Ben 


Jeff,  
  
 I have got your Web.Config file. Thanks! 
  
 Please remove the following node in your web.config: 
 
      <xhtmlConformance mode="Legacy"/>
 
  It seems that you upgraded your application by the wizard from 2003 to 2005, VS added it automatically. 
  
 That should work fine. Let me know for any queries. 
  
 Ben

It looks like that may have fixed it Ben.


 


Thank you very much for your help.



Alway my pleasure! Let me know for any more queries.