This may not be the correct response, your question is kind of vauge. Are
you talking about reading the html of a differnt page or the current page?
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim client As New System.Net.WebClient
Dim str As System.IO.Stream
str = client.OpenRead("http://www.amazon.com")
Dim reader As New System.IO.StreamReader(str)
Dim s As String = reader.ReadToEnd
Response.Write(s)
str.Close()
End Sub
note
"Ali.M" <Ha**@Spam.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
Hi,
What is the shortest way to read contents of an http page into an string?
Thanks,
Alan