How do I get all the HTML of this page as a string?

2

I'm doing a college job and so trying to read the HTML of a bradesco page ( Link I want HTML here )

The problem is that I can not get the HTML that is inside the frames and I do not know how to get it.

Currently what I'm trying to do to get the HTML is:

using System.IO;
using System.Net;

namespace ConsoleApplication1325423423423
{
public class Program
{
    private static void Main(string[] args)
    {
        string url = "https://wwwss.shopinvest.com.br/infofundos/fundos/TabelaRentabilidade.do?cdSgmtoProdt=1";

        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
        request.Method = WebRequestMethods.Http.Get;
        request.Accept = "application/json";

        WebResponse response = request.GetResponse();
        Stream dataStream = response.GetResponseStream();
        StreamReader reader = new StreamReader(dataStream);
        string responseFromServer = reader.ReadToEnd();
    }
}
}

And the return on the server response is:

Basically,whatIneedisawaytogettheHTMLinsidetheframetagwiththenamefrmMeio.

<framename="frmMeio" src="ConteudoTabelaRentabilidade.do?cdSgmtoProdt=1">
    
asked by anonymous 02.03.2016 / 18:27

1 answer

2

According to the comment, the solution is to change the variable url to take only the data from the profitability table, which is contained in iframe .

The command line looks like this:

string url ="https://wwwss.shopinvest.com.br/infofundos/fundos/ConteudoTabelaRentabilidade.d‌​o?cdSgmtoProdt=1";

The result of the change can be accessed here . p>     

02.03.2016 / 19:45