pulsmartin
Member
- Joined
- Jun 3, 2009
- Messages
- 6
- Programming Experience
- 1-3
From my vb.net application I need to get certain information from a website. I want to read certain parts of the sourcecode of the website, how would I do this?
Dim web As New Net.WebClient
Dim source As String = web.DownloadString("url")
DownloadString will return the same text that any browser will get when navigating to the given url, it doesn't matter what technology serves the content. If you're talking about getting the source code for the server application that serves that content then that is not possible, only client side code (such as html, js, xml) and plain text is served when browsing webserver urls.