• λ我爱Aspx >> Asp.Net >> 利用WebClient和WebRequest类获得网页源代码
  • 利用WebClient和WebRequest类获得网页源代码

  • :未知  Դ:internet  :2007-5-20 16:44:36  ؼ:web
  • <asp:TextBox id="UrlText" runat="server" Width="400px">http://dotnet.aspx.cc/content.aspx

        </asp:TextBox>

    <asp:Button id="WebClientButton" Runat="server" Text="用WebClient得到"></asp:Button>

    <asp:Button id="WebRequestButton" runat="server" Text="用WebRequest得到"></asp:Button>

    <br>

    <asp:TextBox id="ContentHtml" runat="server" Width="100%" Height="360px" TextMode="MultiLine">

        </asp:TextBox>

    </form>

    </body>

    </HTML>

    GetPageHtml.aspx.cs

    using System;

    using System.Collections;

    using System.ComponentModel;

    using System.Data;

    using System.Drawing;

    using System.Web;

    using System.Web.SessionState;

    using System.Web.UI;

    using System.Web.UI.WebControls;

    using System.Web.UI.HtmlControls;

    Ҷƪл˵?
  • һƪ网页间非常规方法传递值的方法
    һƪ通过ASP.NET远程杀死进程