locked
Getting Info from Webpage RRS feed

  • Question

  • Hello Guys and Gal,

    This is based on a previous question i had but never got answered so i am going to ask a new question with a different scenario. I am trying to get info of a WebPage(WebBrowser1). That contains multiple info separated by ";", now what I'm trying to do is get Curtain info out of the WebPage lets say the info is as following:

    asaid=jfjgs85jngf87;bsaid=kajsdfbgsdf7;rsaid=kadsfgnnsdfg7;tsaid=jdhr74j8dy7el3kfu8sh4ku4lskdjweu

    *not the real words im trying to find.

    Now what im trying to find are the numbers and letters after tsaid, and also the numbers of bsaid till the ";"
    and i want to store them in variables. tsaid in variable called sessid and bsaid in fsessid.

    *Thank you in Advanced,

    Shane Graham.

     
    Sunday, January 11, 2009 2:14 AM

Answers

  • I have figured it out.

    Dim theString as string = Webbrowser1.document.text

    Dim sessid as string = theString.SubString(theString.IndexOf("tsaid="),38)

    Dim fsessid as string = theString.SubString(theString.IndexOf("bsaid="),24)


    • Marked as answer by shane graham Sunday, January 11, 2009 5:06 AM
    Sunday, January 11, 2009 5:06 AM