Visual Basic: Reading Webpage HTML — error: “Statement is not a valid namespace”? February 27, 2010 No Comments
I have some code (below) that i got from a tutorial, but when i put it into Visual Studio 2008 It says:
“Statement is not valid in a namespace”
What does this mean, and how can i fix it?
FULL CODE
Public Function GetPageHTML(ByVal URL As String, Optional ByVal TimeoutSeconds As Integer = 10) As String
‘ Retrieves the HTML [...]