Response.ContentType = "application/vnd.android.package-archive";
        Response.AddHeader("Content-Disposition", "attachment;filename=test.apk");
        string filename = Server.MapPath("~/test.apk");
        Response.TransmitFile(filename);
        Response.End();//这一句必须得有,让网页停止输出。否则,文件就有了网页了,

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2021-11-24
  • 2021-05-25
  • 2021-06-19
  • 2021-07-23
猜你喜欢
  • 2021-06-22
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-12-26
  • 2022-01-06
相关资源
相似解决方案