locked
show particular part of web page using webview in C#

    Question

  • How to show particular part of  webpage using WebView in xaml ?

    ex. Particular webpage contains a table and i want to show that table contents using webview 


    Regards, Govind

    Monday, March 3, 2014 3:04 PM

Answers

  • Parse the html.

    To elaborate - you would download the entire webpage from the server using HttpClient, parse the HTML that you want from that webpage, then use NavigateToString to display that content in the WebView.

    There's no built-in method that does this natively.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.


    Monday, March 3, 2014 8:46 PM
    Moderator