c#代码:
WebRequest mywebrq;
WebResponse mywebresp;
StreamReader ريال؛
كاتب الدفق sw؛
باطلة خاصة Page_Load(object sender,EventArgs e)
{
mywebreq=WebRequest.Create( http://localhost/Test.aspx );
mywebresp=mywebreq.GetResponse();
sr=newstreamReader(mywebresp.GetResponsestream());
strHtml=sr.ReadToEnd();
sw=File.CreateText(server.mappath("Test.htm"));
sw.writeling(strHtml);
sw.Close();
Response.writeFile(Server.Mappath("Test.htm"));
}