//using System.Net;
//using System.IO;
private void button1_Click(object sender, EventArgs e)
{
WebRequest req = WebRequest.Create("http://stock.business.sohu.com/q/bc.php?code=000607");
try
{
WebResponse result = req.GetResponse();
Stream ReceiveStream = result.GetResponseStream();
StreamReader readerOfStream = new StreamReader(ReceiveStream, System.Text.Encoding.GetEncoding("GB2312"));
string temp = readerOfStream.ReadToEnd();
richTextBox1.Text = temp;
}
catch { }
}
//using System.IO;
private void button1_Click(object sender, EventArgs e)
{
WebRequest req = WebRequest.Create("http://stock.business.sohu.com/q/bc.php?code=000607");
try
{
WebResponse result = req.GetResponse();
Stream ReceiveStream = result.GetResponseStream();
StreamReader readerOfStream = new StreamReader(ReceiveStream, System.Text.Encoding.GetEncoding("GB2312"));
string temp = readerOfStream.ReadToEnd();
richTextBox1.Text = temp;
}
catch { }
}