Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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

Thanks for any Help!!!

-Rob

  • *Experts*
Posted

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

:)

Posted
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

Thanks for any Help!!!

-Rob

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...