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();//这一句必须得有,让网页停止输出。否则,文件就有了网页了,

相关文章:

  • 2021-12-26
  • 2022-01-06
  • 2022-12-23
  • 2021-09-08
  • 2021-09-08
  • 2021-09-18
  • 2021-12-17
猜你喜欢
  • 2021-06-22
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-10-17
  • 2021-08-16
相关资源
相似解决方案