using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Net;
public partial class _Default : System.Web.UI.Page
{
WebRequest mywebreq;
WebResponse mywebresp;
StreamReader sr;
StreamWriter sw;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button3_Click(object sender, EventArgs e)
{
mywebreq = WebRequest.Create("http://localhost:2088/aspTOhtml/Default.aspx");
mywebresp = mywebreq.GetResponse();
sr = new StreamReader(mywebresp.GetResponseStream());
sw = File.CreateText(Server.MapPath("Default.htm"));
sw.WriteLine(sr.ReadToEnd());
sw.Close();
Response.WriteFile(Server.MapPath("Default.htm"));
}
}
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Net;
public partial class _Default : System.Web.UI.Page
{
WebRequest mywebreq;
WebResponse mywebresp;
StreamReader sr;
StreamWriter sw;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button3_Click(object sender, EventArgs e)
{
mywebreq = WebRequest.Create("http://localhost:2088/aspTOhtml/Default.aspx");
mywebresp = mywebreq.GetResponse();
sr = new StreamReader(mywebresp.GetResponseStream());
sw = File.CreateText(Server.MapPath("Default.htm"));
sw.WriteLine(sr.ReadToEnd());
sw.Close();
Response.WriteFile(Server.MapPath("Default.htm"));
}
}