提取动态网页内容

Uri uri = new Uri("网址");
  WebRequest req = WebRequest.Create(uri);
  WebResponse resp = req.GetResponse();
  Stream str = resp.GetResponseStream();
  StreamReader sr = new StreamReader(str,System.Text.Encoding.Default);
  string t = sr.ReadToEnd();
  this.Response.Write(t.ToString());



欢迎光临我们的淘宝饰品店:http://shop36465575.taobao.com/
posted @ 2009-09-17 20:44  空紫竹  阅读(232)  评论(0编辑  收藏  举报