Pergunta

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()
Foi útil?

Solução

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

Response.AddHeader("Content-disposition", "attachment; filename=""" & inhoud.titel & """" & ".pdf")
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top