views:

341

answers:

2

Using webBrowser control in a winForm. but when the webpage is updated by Ajax or in a frame, I cannot use webBrowser1.document.getElementById et. to find that htmlElement. the element also won't show in the View->Source code in IE. any one can help? the untimate purpose is to find that htmlElement and simulate a click or other function like invokeMember("staff")

thanks

+1  A: 

The WebBrowser's Document object does indeed represent a live view of the DOM so there may be some other reason that you're unable to find it. DOM updates will not however be represented in View -> Source. You should use IE8's developer tools which will show you a live view of the DOM and maybe you'll see something like an incorrect/duplicate ID or something.

Josh Einstein
A: 

hi thanks for reply.

i'm not trying to see the source code. i want to get that htmlElement and control it in a winForm.

Anyone help Please

thanks

Kevin