I am new to webbrowser control, I need to download string from server via Rest API in web browser control of my window application.
Is there any replacement of webClientObject.DownloadString() method in webbrowser control.
I am new to webbrowser control, I need to download string from server via Rest API in web browser control of my window application.
Is there any replacement of webClientObject.DownloadString() method in webbrowser control.
Try call Navigate method
webBrowser1.Navigate(new Uri(address));
then call WebBrowser.OnNavigated Method.
private void webBrowser1_Navigated(object sender,
WebBrowserNavigatedEventArgs e)
{
// get webBrowser1.DocumentText Property or webBrowser1. DocumentStream
You can try WebBrowser.InvokeScript this link to get javascript variable or ịnject javascript to get Rest APi url, or Rest API content