I'm new to this Windows Metro stuff and I am trying to make a application that grab a html page from the web and fills some fields in the app.
Right now I'm just trying to figure out how to grab a page and send pure HTML to a textbox.
I've setted up a button (that runs the next function once clicked) and a textbox to display the information.
The function executed by the button is this:
private void fetch_websites(object sender, RoutedEventArgs e)
{
String url = "http://www.google.com/";
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(url);
this.content_block.Text = doc.DocumentNode.OuterHtml;
}
The problem is that the displayed information is not the Html code but the "url" string.