方式一:添加双引号
Response.AddHeader("content-disposition", "attachment; filename=\"" + FileName + "\"") 方式二:替换掉文件的半角分号
var FileName = "www.kzwr.com,酷站网软".Replace(",", "")
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment; filename=" & FileName)
Response.BinaryWrite(myPDF)
 
05-11 13:17