/// <summary> /// /// </summary> /// <param name="st">文本框ID</param> /// <param name="str">文本框的值</param> protected void check(string st,string str) { if (str != null){ TextBox stID = Page.FindControl(st) as TextBox; SpiderLib.DownloadHtml don = new DownloadHtml(stID.Text); } }
protected void BtnDownload_Click(object sender, EventArgs e) { SpiderLib.DownloadHtml don = new DownloadHtml(this.DownloadUri.Text); Response.Write("<script type='text/javascript'>window.alert(' 已经下载了网页文件!!! ');</script>"); }