privatevoid WebClientButton_Click(object sender, System.EventArgs UrlText.Text;WebClient wc newWebClient(); wc.Credentials Byte[]pageData wc.DownloadData(PageUrl);ContentHtml.Text StreamresStream StreamReadersr newStreamReader(resStream,System.Text.Encoding.Default); privatevoid WebRequestButton_Click(object sender, System.EventArgs UrlText.Text;WebRequest request WebRequest.Create(PageUrl);WebResponse response request.GetResponse();Stream resStream response.GetResponseStream();StreamReader sr newStreamReader(resStream, System.Text.Encoding.Default); ContentHtml.Text sr.ReadToEnd();resStream.Close(); sr.Close();