62,046
社区成员
发帖
与我相关
我的任务
分享
public static void Convert(string strWebFormName)
{
str2HTML = str2HTML.ToLower();
str2HTML = strWebFormName.Replace(".aspx", ".html");
string strURL = "http://" + HttpContext.Current.Request.Url.Authority + "/" + strWebFormName;
new System.Net.WebClient().DownloadFile(strURL, System.Web.HttpContext.Current.Server.MapPath("~/" + str2HTML));
HttpContext.Current.Response.Redirect(str2HTML);
}