private string GetHTML() { System.Net.WebClient client = new WebClient(); Stream strm = client.OpenRead("http://www.mayb.cn"); StreamReader sr = new StreamReader(strm); string line; StringBuilder strB = new StringBuilder(); while ((line = sr.ReadLine()) != null) { strB.Append(line); } strm.Close(); return strB.ToString(); }