VB.Net HTML document read

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 3
Reputation: jahanna is an unknown quantity at this point 
Solved Threads: 0
jahanna's Avatar
jahanna jahanna is offline Offline
Newbie Poster

VB.Net HTML document read

 
0
  #1
Nov 12th, 2008
Hey guys, i need to read form(s) on VB.Net from the simple html based web sites, like on VB6 webbrowser object;
  1. WebBrowser.Document.All("form").All("field")
But i shouldn't to use a WebBrowser object. How can i do this on VB.net?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: simulanics is an unknown quantity at this point 
Solved Threads: 0
simulanics simulanics is offline Offline
Newbie Poster

Re: VB.Net HTML document read

 
0
  #2
Nov 19th, 2008
Dim i As Integer = 0

If WebBrowser1.Document IsNot Nothing Then

Dim str As String = String.Empty

For Each form As HtmlElement In WebBrowser1.Document.Forms

i = i + 1

str = i.ToString + " " + str + form.Name + vbCrLf

str = str + form.GetType.ToString + vbCrLf

str = str + form.InnerText.ToString + vbCrLf

str = str + form.OuterText.ToString + vbCrLf

Next

MessageBox.Show(str)


-------------------------------------
Hope this helps :-) Ask me anything you need to know. Any proggin lang too :-) admin@simulanics.com
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 3
Reputation: jahanna is an unknown quantity at this point 
Solved Threads: 0
jahanna's Avatar
jahanna jahanna is offline Offline
Newbie Poster

Re: VB.Net HTML document read

 
0
  #3
Nov 20th, 2008
Thanks for reply the topic simulanics but my problem is little different. I can not be use the Webbrowser control on this program. How can i do this with another way? Thats all i need. If you know the another way to do this i realy greatful.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 144
Reputation: sierrainfo is an unknown quantity at this point 
Solved Threads: 9
sierrainfo sierrainfo is offline Offline
Junior Poster

Re: VB.Net HTML document read

 
0
  #4
Nov 21st, 2008
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 3
Reputation: jahanna is an unknown quantity at this point 
Solved Threads: 0
jahanna's Avatar
jahanna jahanna is offline Offline
Newbie Poster

Re: VB.Net HTML document read

 
0
  #5
Nov 21st, 2008
It's still webbrowser component is it different way to do this ? Or its can be just with webbrowser anyway thanks 4 the helps.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: simulanics is an unknown quantity at this point 
Solved Threads: 0
simulanics simulanics is offline Offline
Newbie Poster

Re: VB.Net HTML document read

 
0
  #6
Jun 19th, 2009
Use the WebRequest Class built into the .Net Framework..check out my newest software title Simulanics Mobsters Bot...just google it..I'm sure you'll get a hit :-D..but using a similar class built for vb6 my proggies do the same thing...but stick with the example on the following site...it should help u :-)

http://www.vbdotnetheaven.com/Upload...uestClass.aspx
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC