Vb Gangsta Posted October 6, 2003 Posted October 6, 2003 This is a pretty straight forward Question. I have a variable with a link in it. The varialble is url . Now I need to get all the html from that site and put it into a varaible called sData2 . Thanks Quote Thanks for any Help!!! -Rob
*Experts* Volte Posted October 6, 2003 *Experts* Posted October 6, 2003 Use the WebClient class and its DownloadData method to retrieve HTML from a website. Quote
Vb Gangsta Posted October 6, 2003 Author Posted October 6, 2003 How do i use the web client Class? Quote Thanks for any Help!!! -Rob
*Experts* mutant Posted October 6, 2003 *Experts* Posted October 6, 2003 Dim webc As New System.Net.WebClient 'new WebClient Dim b() As Byte = webc.DownloadData("webste address") 'download the data to a byte array dim html As String = System.Text.ASCIIEncoding.ASCII.GetString(b) 'decode the bytes into a string :) Quote
Vb Gangsta Posted October 6, 2003 Author Posted October 6, 2003 thats almost what i need except when i use the web client class i am never logged in at this website so is there a way i can use AxWebBrowser1 instead because i know that works. THanks Quote Thanks for any Help!!! -Rob
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.