好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > 用asp.net實現(xiàn) 取頁面中的所有鏈接

用asp.net實現(xiàn) 取頁面中的所有鏈接

熱門標簽:地圖標注銷售數(shù)據(jù) 地圖標注位置有用嗎 岳陽縣地圖標注app 中國地圖標注省份顏色 谷歌地圖標注時間 廣州云外呼系統(tǒng)公司 百應(yīng)ai電話機器人銷售怎么樣 好的人工智能電話機器人 云南旅游地圖標注app
private void Page_Load(object sender, System.EventArgse) 
  { 
   //在此處放置用戶代碼以初始化頁面 

   string url =https://www.jb51.net; 
   System.Net.HttpWebRequesthttpReq; 
   System.Net.HttpWebResponsehttpRes; 
   System.UrihttpURL = new Uri(url); 
   httpReq =(System.Net.HttpWebRequest)System.Net.WebRequest.Create(httpURL); 
   httpReq.Method= "GET"; 
   httpRes= (System.Net.HttpWebResponse)httpReq.GetResponse(); 
   httpReq.KeepAlive= false; 
   System.IO.StreamReadersReader = newSystem.IO.StreamReader(httpRes.GetResponseStream(),System.Text.Encoding.GetEncoding("GB2312")); 
   stringres = sReader.ReadToEnd(); 
   //以下是利用正則表達式對獲取的文本流進行過濾 
   stringstrRegex = @"a.+?a>"; 
   System.Text.RegularExpressions.Regexr; 
   System.Text.RegularExpressions.MatchCollectionm; 
   r = newSystem.Text.RegularExpressions.Regex(strRegex,System.Text.RegularExpressions.RegexOptions.IgnoreCase); 
   m =r.Matches(res); 
   Response.Write("該頁共有"+m.Count + " 個超連接br/>"); 
   for (inti = 0; i  m.Count; i++) 
   { 
    Response.Write(m[i].Value+ "br/>"); 
   } 
  } 

標簽:宜昌 南京 東營 三沙 鄭州 周口 天門 三明

巨人網(wǎng)絡(luò)通訊聲明:本文標題《用asp.net實現(xiàn) 取頁面中的所有鏈接》,本文關(guān)鍵詞  用,asp.net,實現(xiàn),取,頁面,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《用asp.net實現(xiàn) 取頁面中的所有鏈接》相關(guān)的同類信息!
  • 本頁收集關(guān)于用asp.net實現(xiàn) 取頁面中的所有鏈接的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章