Response.Clear();
Response.Buffer = false;
Response.ContentType = "application/octet-stream";
Response.AppendHeader("content-disposition", "attachment;filename=test.txt;");
Response.Write("1234567/r/n");
Response.End();
ASP,NET动态生成txt并下载
最新推荐文章于 2015-11-04 18:46:28 发布