public static string getPartHtml(string url)
{
string result = url;
WebResponse objResponse;
WebRequest objRequest = System.Net.HttpWebRequest.Create(url);
objResponse = objRequest.GetResponse();
using (StreamReader sr = new StreamReader(objResponse.GetResponseStream(), System.Text.Encoding.GetEncoding("GB2312")))
{
result = sr.ReadToEnd();
sr.Close();
}
return result;
}
把页面以流的形式输出 在另外一个页面显示
<%=Expo.Admin.CHtml.getPartHtml("http://news.newexpo.com/gotoPage/world01.aspx")%>