manraj82
manraj82

Reputation: 6325

Response.ContentType = "application/vnd.ms-excel" works in IE and firefox but not in Safari

I have got an asp file with the following header Response.ContentType = "application/vnd.ms-excel" ,it displays the file in an excel format.This works in IE and firefox but not in safari. Any ideas why?

Upvotes: 1

Views: 14242

Answers (1)

Well, you can try forcing it like so:

Content-type: application/force-download

Content-disposition: attachment; filename="somefile.txt"

Please say if it works for you. Hope it helps.

Upvotes: 4

Related Questions