pdf下载浏览器直接访问

Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment;FileName=xxxxxxxxxxx")
Response.AddHeader("Content-Disposition", "inline;FileName=xxxxxxxxxxx")

attachment  修改为 inline

posted @ 2022-03-25 13:57  chendashuo  阅读(19)  评论(0编辑  收藏  举报