You can use the following code to get the content of a web page into a string:
string url = "some site";
string source = string.Empty;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
using(StreamReader sr = new StreamReader(response.GetResponseStream()){
source = sr.ReadToEnd();
}
* You will the the content placed in the string source
Optional snippet:
WebClient client = new WebClient();
string downloadString = client.DownloadString("http://www.gooogle.com");
Cheers,
Edo