asp.net Apk文件的下载

        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();//这一句必须得有,让网页停止输出。否则,文件就有了网页了,
posted on 2011-05-29 15:25  --Sam--  阅读(1024)  评论(0编辑  收藏  举报