【发布时间】:2014-06-25 19:56:10
【问题描述】:
我创建了一个页面,您可以在其中下载文件,它在 firefox 和 google chrome 中运行良好,但是当我在 IE 10 中执行此操作时,我会从“文件”类型中获取一个文件,但它必须是 pdf,我打不开。
这是我用来下载的代码:
Response.ContentType = "application/pdf"
Response.AddHeader("Content-disposition", "attachment; filename=""" & inhoud.titel & """")
Response.BinaryWrite(inhoud.bestand)
Response.End()
【问题讨论】:
标签: asp.net vb.net pdf download content-type