新建一WEB页面,加入下面代码:
void Page_Load(object sender, System.EventArgs e)
{
Response.ClearHeaders();
Response.ClearContent();
Response.AddHeader("Content-Disposition", "attachment; filename=test.txt");
Response.Write("hello everyone...");//输入文本文件内容
Response.End();
}
void Page_Load(object sender, System.EventArgs e)
{
Response.ClearHeaders();
Response.ClearContent();
Response.AddHeader("Content-Disposition", "attachment; filename=test.txt");
Response.Write("hello everyone...");//输入文本文件内容
Response.End();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货