Uri uri = new Uri("http://rotter.net/scoopscache.html");
client.Encoding = System.Text.Encoding.GetEncoding(1255);
//page = client.DownloadString("http://rotter.net/scoopscache.html");
page = client.DownloadFileAsync(uri, @"myhtml.html");
listsext.Ext(page);
If I'm using DownloadString, it will assign the html content to page. I want the page to contain the file name, so I tried to use DownloadFileAsync but I'm getting error on this line:
Error 2 Cannot implicitly convert type 'void' to 'string'