Here is an example that shows just how easy it is:
Dim myURI as new System.URI("http://www.microsoft.com")
Dim myHTML as string = GetURIText(myURI)
Protected Function GetURIText(ByVal myURI As System.Uri) As String
Dim result As String = String.Empty
If Not IsNothing(myURI) Then
Dim wb As New System.Net.WebClient
result = wb.DownloadString(myURI)
End If
Return result
End Function
Hope that helps.
Joe Kunk
Okemos, MI
No comments:
Post a Comment