//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 { }
        }
posted on 2008-02-25 13:54  白沙河  阅读(308)  评论(2编辑  收藏  举报