In vb.net, why would my webclient.DownloadString instruction produce a string that is missing several Links
Posted on 2014-08-14
I'm writing an application to read a website that includes a link to a spreadsheet that I need to download on a daily basis. I want to automate this.
Dim strWebPageSource As String
strWebPageSource = New System.Net.WebClient().DownloadString("websiteURL")
String is returned successfully, and parts of the web page are included. However, some of the parts are not included.
When I actually look at the web page manually and do a "VIEW SOURCE", I can see the link (<a href="...">xxx</a>) to the spreadsheet just fine. But the entire tag is missing from my string. There are other selective tags missing, also.