Response.ContentType = "application / vnd.ms-excel" works in IE and firefox, but not Safari
I have an asp file with the following header Response.ContentType = "application / vnd.ms-excel", it displays the file in excel format. This works in IE and firefox, but not in safari. Any ideas why?
+1
manraj82
source
to share
1 answer
Well, you can try doing this:
Content-type: application/force-download
Content-disposition: attachment; filename="somefile.txt"
Please tell me if it works for you. Hope it helps.
+4
Rodrigo Hahn
source
to share