Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing a html page containing a string of value pairs
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00711769
Message ID:
00711822
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform