从数据库中返回文件时,下载的的文件名怎样取回原来的名字?

1   
2Response.BinaryWrite cfiel ' 返回文件   

我用Response.BinaryWrite 返回文件
Response.ContentType 指定文件类型

怎样用回原来的文件名,而不是ASP的文件名呢??

---------------------------------------------------------------

Response.AddHeader "Content-Disposition", "attachment; filename=" & fileName写这里
Response.ContentType = "application/octet-stream"
Response.BinaryWrite cfiel

Published At
Categories with Web编程
Tagged with
comments powered by Disqus