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


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


source







All Articles