RSS Forums RSS

VB.Net HTML document read

Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
Reply
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

  #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;
 WebBrowser.Document.All("form").All("field")
But i shouldn't to use a WebBrowser object. How can i do this on VB.net?
AddThis Social Bookmark Button
Reply With Quote  
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

  #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  
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

  #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  
Posts: 143
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

  #4  
Nov 21st, 2008
Reply With Quote  
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

  #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  
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

  #6  
17 Days Ago
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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 2216 | Replies: 5 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:48 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC