Nate
Nate

Reputation: 259

Reading json data from a WPF WebBrowser Control

How would I go about reading the json data returned by a web server in response to the ajax calls/polls from the html document inside my wpf web browser control? The connection between the client and server is secured.

Upvotes: 2

Views: 3316

Answers (1)

Tommy Grovnes
Tommy Grovnes

Reputation: 4156

It's possible to call C# code from Javascript and vice versa i.e. call Javascript in the page from C#. Depending on your scenario you could use either of these to return the JSON string.

See this article for more information

If you don't have control over the html page i.e. you cannot change it you might have to parse the whole page, you can get the page like this

Upvotes: 1

Related Questions