문제

I made a page where you are able to download files and it works fine in firefox and google chrome but when I do it in IE 10 i get a file with from the type "file" but it has to be pdf and I can't open it.

This is the code I use to download:

        Response.ContentType = "application/pdf"
        Response.AddHeader("Content-disposition", "attachment; filename=""" & inhoud.titel & """")
        Response.BinaryWrite(inhoud.bestand)
        Response.End()
도움이 되었습니까?

해결책

Have you tried appending ".pdf" to the filename?

Response.AddHeader("Content-disposition", "attachment; filename=""" & inhoud.titel & """" & ".pdf")
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top