后台请求url数据
string strUrl = this.PicWebUrl+"cn/www/zh-chs/edushi/links/link.txt";//?rnd="+DateTime.Now; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strUrl); //获得响应流 HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream ret = response.GetResponseStream(); StreamReader sr = new StreamReader(ret, Encoding.GetEncoding("GB2312")); litContent.Text = sr.ReadToEnd();