How can i fetch a value that resides in a web page from a windows app on the same client?

hi,

i have a c# winforms app that needs to fetch a specific value that resides in a specific web page.

the web page needs to be opened in the client before i can fetch it.

i tried shdocvw but it gave me alot of problems.

anyone can help



Answer this question

How can i fetch a value that resides in a web page from a windows app on the same client?

  • Barry Kelly

    Why do you want to open the web page in the client first Just use the System.Web.WebClient class and its DownloadFile method to get the html document you need. Then just parse it for the value you want.

    Don't use interop when there is an easier way through the .NET Framework!


  • Sam Spencer

    i know the windows screen name and the id attribute


  • Dinhduy Tran

    do you know the URL and the id attribute of the element you want to grab

  • Patrick Sasky

    The web page is not my application, it is opened seperately, and i have no control over it.
  • How can i fetch a value that resides in a web page from a windows app on the same client?