- 分享
- 0
- 人气
- 0
- 主题
- 43
- 帖子
- 396
- UID
- 442271
- 积分
- 698
- 阅读权限
- 17
- 注册时间
- 2011-9-7
- 最后登录
- 2017-3-4
- 在线时间
- 4956 小时
      
|
[code=csharp] try
{
Response.ContentType = "application/x-msdownload";
string filename = "attachment; filename=" + "price list.jpg";
Response.AddHeader("Content-Disposition", filename);
string filepath = "images/Price List.jpg";
Response.TransmitFile(Server.MapPath(filepath));
}
catch (Exception ex)
{
lblMsg.Text = ex.Message;
}[/code]
一般上我是这样写的,使用电脑游览器的话,可以下载到图片 ,
但是我一但用手机 ,下载到的照片就是损坏的 。
想问手机和电脑的下载代码是不是有差异 ?
谁有代码吗 ? |
|