nishanuw
nishanuw

Reputation: 59

Reading data from Website using C#

I have a website named:

string url="http://180.92.171.80/ffs/data-flow-list-based/flood-forecasted-site/"

When I give the station name, River name, Basin name, It returns me present Water level. I want to do it in C#. I can read HTML code from C#. But there is no value in HTML. Where to start or how I can do it easily? Anyone have any idea?

Upvotes: 0

Views: 3248

Answers (1)

Mike Hixson
Mike Hixson

Reputation: 5199

Check out the WebClient class. You can use the DownloadString() method to get the html from your url as a string.

WebClient client = new WebClient ();
string reply = client.DownloadString (address);

http://msdn.microsoft.com/en-us/library/fhd1f0sw.aspx

Upvotes: 1

Related Questions