.net 2.0 中点击下载文件的方法        Response.ContentType = "application/octet-stream";
.net 2.0 中点击下载文件的方法        
string filename = e.CommandArgument.ToString();
.net 2.0 中点击下载文件的方法        filename 
= UploadHelper.getFileName(filename.Replace("/","\"));
.net 2.0 中点击下载文件的方法        Response.AddHeader(
"Content-Disposition""attachment;filename=" + filename);
.net 2.0 中点击下载文件的方法        
string filepath = Server.MapPath(e.CommandArgument.ToString());
.net 2.0 中点击下载文件的方法        Response.TransmitFile(filepath);
 

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1764788

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
  • 2021-10-02
猜你喜欢
  • 2022-02-09
  • 2021-09-19
  • 2021-11-29
  • 2021-11-19
  • 2022-12-23
  • 2021-11-19
  • 2021-12-24
相关资源
相似解决方案