Ian H.
Ian H.

Reputation: 3919

C# - Get HtmlDocument Content of HTML Frame

I am trying to develop an application that automatically retrieves data from a table located on a website. I already coded the automatic log-in and redirection to the page where the table is located.

The HtmlDocument consists of a frameset that contains multiple frames. In each of these frames a subdocument is located, which unfortunatly, doesn't show up if I read the retrieved HTML code of my application.

This is what the website code looks like:

<frame src="welcome.htm" scrolling="auto" name="main">
  #document
      <html>...</html>
</frame>

This is what my retrieved data looks like:

<frame src="welcome.htm" scrolling=auto name="main">

with nothing after it. The table I want to access is inside this #document.

How would I do this?

Upvotes: 1

Views: 1233

Answers (1)

Ian H.
Ian H.

Reputation: 3919

Alright, I figured out myself. By adding the welcome.htm to the URL of the website you get the source document, and the elements on the page.

Upvotes: 1

Related Questions