动态读取网页内容

HttpWebRequest RQ = (HttpWebRequest)WebRequest.Create("http://......com/index.html");
        StreamReader Sr = new System.IO.StreamReader(RQ.GetResponse().GetResponseStream(), Encoding.GetEncoding("gb2312"));
        string str = Sr.ReadToEnd();
        Sr.Close();
        Response.Write(str);

你可能感兴趣的:(动态)