usingSystem.IO;usingSystem.Text;usingSystem.Net;protectedvoidButton1_Click(objectsender,EventArgse){stringMypath=Server.MapPath("~/ht/aa.html");WebClientw=newWebClient();byte[]b=w.DownloadData(newUri("http://localhost:10632/WebSite2/Default.aspx"));stringss=Encoding.UTF8.GetString(b);FileInfof=newFileInfo(@"F:\丿丿丿上海天柏信息科技有限公司\案例\WebSite2\aa.html");StreamWritersw=newStreamWriter(Mypath,false,Encoding.UTF8);sw.Write(ss);sw.Close();}