MIME让TXT可下载
2019独角兽企业重金招聘Python工程师标准>>> public void string = " d:\\abc.txt " ; // // // context.Response.Clear(); // context.Response.ClearHeaders(); // // " Content-disposition " " attachment;filename=abc.txt " ); // // // context.Response.Flush(); // context.Response.End(); public bool get return false ; private void string = = new = new byte [fs.Length]; 0 = false = " application/force-download " ; " Content-Disposition: " " attachment;filename= " + " Content-Length " 转载于:https://my.oschina.net/secyaher/blog/274128 文章来源: https://blog.csdn.net/weixin_33725239/article/details/91967098