Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing a html page containing a string of value pairs
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00711769
Message ID:
00711822
Views:
10
Allan,

From what I can find, the mshtml.HTMLDocument will provide what you are looking for. You can retrieve the content of the HTML from the body property of the HTML document:
Dim doc As mshtml.HTMLDocument = CType(axWebBrowser1.Document, mshtml.HTMLDocument)
Dim html AS String = doc.body.innerHTML
From there you would read through the string and extract out the data you want to retrieve.


>Hi,
>
>I need to parse an html page that contains a string of value pairs that will be passed to my ASPX page (VB.Net).
>
>What is the best approach to take considering the following example:
>
>
>sub_id=Tester&author_password=pass&prod_sku=98079949999&qty=1&sh=1&var=1
>
>
>Specifically, using VB.NET, how would I grab, for example, the sub_id("Tester")?
>
>Thanks in advance, Al
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform