zulu delta

zulu delta

  • NA
  • 3
  • 3k

GetElementById() not working

Jul 29 2010 3:22 PM
I'm having trouble receiving a value from GetElementById(); using C#

I have a C++ header file with a webControl on it with an HTML file (Google maps).
What I want to do is store the reverse geocode into a <label> tag with a text attribute and retrieve that address as a string.
I instantiated the map object and the webBrowser and document, but the element is null.  When I debug it all the other values (Document, DocumentText) show up but not the HtmlElement element = document.GetElementById("addr");

When I return the DocumentText property, it shows up the HTML markup, but not all of it (is there a string type limit?)

Any suggestions are appreciated.

Thanks.

Answers (3)