Hello
I am trying to run this code but everytime i got this error
ErrorCode:Public Sub Command1_Click() Dim fr As System.Net.HttpWebRequest Dim targetURI As New Uri("http://whatever.you.want.to.get/file.html") fr = DirectCast(HttpWebRequest.Create(targetURI), System.Net.HttpWebRequest) If (fr.GetResponse().ContentLength > 0) Then Dim str As New System.IO.StreamReader(fr.GetResponse().GetResponseStream()) Response.Write (str.ReadToEnd()) str.Close(); End If MsgBox (targetURI) End Sub
Searched on Internet but didnt got the solution. What problem i am getting ?Code:user defined type not defined
Thanks


Reply With Quote