<pre id="bbfd9"><del id="bbfd9"><dfn id="bbfd9"></dfn></del></pre>

          <ruby id="bbfd9"></ruby><p id="bbfd9"><mark id="bbfd9"></mark></p>

          <p id="bbfd9"></p>

          <p id="bbfd9"><cite id="bbfd9"></cite></p>

            <th id="bbfd9"><form id="bbfd9"><dl id="bbfd9"></dl></form></th>

            <p id="bbfd9"><cite id="bbfd9"></cite></p><p id="bbfd9"></p>
            <p id="bbfd9"><cite id="bbfd9"><progress id="bbfd9"></progress></cite></p>

            dz asp.net論壇中函數--根據Url獲得源文件內容

            時間:2024-05-31 10:37:08 ASP 我要投稿
            • 相關推薦

            有關dz asp.net論壇中函數--根據Url獲得源文件內容

              需要引入命名空間:

              復制代碼 代碼如下:

              using System.Net;

              using System.IO;

              函數內容:

              復制代碼 代碼如下:

              ///

              /// 根據Url獲得源文件內容

              ///

              ///合法的Url地址

              ///

              public static string GetSourceTextByUrl(string url)

              {

              WebRequest request = WebRequest.Create(url);

              request.Timeout = 20000;//20秒超時

              WebResponse response = request.GetResponse();

              Stream resStream = response.GetResponseStream();

              StreamReader sr = new StreamReader(resStream);

              return sr.ReadToEnd();

              }

            【dz asp.net論壇中函數--根據Url獲得源文件內容】相關文章:

            PHP url 加密解密函數代碼方法10-25

            ASP.NET Page函數調用解析10-01

            SQL中的單記錄函數08-12

            解讀Rnd 函數中的asp08-03

            SQL中的單記錄函數盤點09-09

            excel中if函數的使用方法10-24

            關于Excel中vlookup函數的使用06-12

            PHP中函數的使用說明09-01

            PHP中的排序函數區別分析08-23

            淺析網站URL的SEO價值07-23

                    <pre id="bbfd9"><del id="bbfd9"><dfn id="bbfd9"></dfn></del></pre>

                    <ruby id="bbfd9"></ruby><p id="bbfd9"><mark id="bbfd9"></mark></p>

                    <p id="bbfd9"></p>

                    <p id="bbfd9"><cite id="bbfd9"></cite></p>

                      <th id="bbfd9"><form id="bbfd9"><dl id="bbfd9"></dl></form></th>

                      <p id="bbfd9"><cite id="bbfd9"></cite></p><p id="bbfd9"></p>
                      <p id="bbfd9"><cite id="bbfd9"><progress id="bbfd9"></progress></cite></p>
                      飘沙影院