Bahman Kasmai

Bahman Kasmai

  • NA
  • 11
  • 1k

Webbrowser control body innertext contains no data and inner

Jul 17 2019 4:30 PM
The webbrowser control in vs2015 successfully loads the page created by an medical imaging web application. The page can be access using the address below: The web application is a medical image viewing application with web address of: http://server-name/explore.asp?epath= ....
 
I am not sure but I think the content is created by an ActiveX control. Viewing the source page shows no data but the page displays data in a grid view. I want to capture the data content in the grid view table. The code below works but the content of the data grid is empty.
  1. string browserContents = webBrowser1.DocumentText;  
  2. txtResult.Text = browserContents;  
webBrowser1.Document.Body.InnerText returns empty text and webBrowser1.Document.Body.InnerText returns html with lots of java script but no data content.
 
Am i wasting my time in trying to get the data content when page source contains no data even though page displays data in a grid view table as displayed by the web page? I spent hours on this. Any help on this will be appreciated.

Answers (1)