我必须阅读来自http://www.bk.com/en/us/restaurant-locator/index.html?s=89165的回复 。我使用了以下代码但没有得到所有回复。提前致谢。
protected void Page_Load(object sender, EventArgs e)
{
string sUrl = "http://www.bk.com/en/us/restaurant-locator/index.html?s=89165";
XmlDocument rssDoc = new XmlDocument();
XmlTextReader rssReader = new XmlTextReader(sUrl.ToString());
WebRequest wrGETURL;
wrGETURL = WebRequest.Create(sUrl);
Stream objStream;
objStream = wrGETURL.GetResponse().GetResponseStream();
StreamReader objReader = new StreamReader(objStream, Encoding.UTF8);
WebResponse wr = wrGETURL.GetResponse();
Stream receiveStream = wr.GetResponseStream();
StreamReader reader = new StreamReader(receiveStream, Encoding.UTF8);
string content = reader.ReadToEnd();
Response.Write(content);
}
有没有人可以帮助所有数据出现在网页上?