I have already done a search in Qaru (and google) but cannot find a specific answer that solves my problem.
I want to read some content on the page. I tried using Webclient
, but this gives me this error:
Cannot find name of type or WebClient namespace (ae you missing using directive or assembly reference?)
I tried to find on Google how to solve this error, but did not find the correct answer (I also tried HttpClient
, same result).
How do I make sure that I get the contents of its specific page?
Btw, this is what I have right now:
WebClient client = new WebClient(); // Use google as test page string downloadString = client.DownloadString("http://www.gooogle.com");
And I use the Visual Studio 2015 community and ASP.Net v5
source share