下载文件的代码

来源:互联网 发布:java string转byte 编辑:程序博客网 时间:2024/05/01 19:19
Response.Clear()
Response.AddHeader("Content-Disposition", "attachement; filename=" & FileName)
Response.AddHeader("Content-Lenght", Lenght)
Response.ContentType = "application/octet-stream"
Response.WriteFile(FileName)
Response.End
原创粉丝点击