62,046
社区成员
发帖
与我相关
我的任务
分享
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;
}