p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   Get Value from online page (http://p2p.wrox.com/showthread.php?t=22118)

qadeerahmad December 4th, 2004 08:10 AM

Get Value from online page
 
Hi All;
        i want to get value from other page. which is access on internet. who i can do?? for example i want to get currency Value from yahoo page or other site and used these value in our page. Can anybody help me

                            Regards
                         Qadeer Ahmad

qadeeralvi

mordain December 4th, 2004 12:00 PM

All I can think of is Parsing the response from a WebClient object. But I think this is out of the scope of your question.
Getting the page is easy though, parsing it is going to be the problem.

Getting the page would be something like this.

// Create a new WebClient instance.
WebClient myWebClient = new WebClient();
// Open a stream to point to the data stream coming from the Web resource.
Stream myStream = myWebClient.OpenRead(uriString);

StreamReader sr = new StreamReader(myStream);
//Parse the page here with the StreamReader

// Close the stream.
myStream.Close();


All times are GMT -4. The time now is 02:51 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.