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:
00711878
Views:
8
Thanks Cathi, I'll give this a shot. By the way, once I've written the code, I'm not sure how to test this out - specifically calling my ASPX page (TestReg.ASPX) from an HTML page containing the following value pairs:
sub_id=Tester&author_password=pass&prod_sku=98079949999&qty=1&sh=1&var=1
Any advice would be appreciated.

Al



>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
Al Williams

Anola MB, CANADA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform