Response.ContentType ="应用程序/ vnd.ms - Excel中"在IE和Firefox,但不是在Safari浏览器 [英] Response.ContentType = "application/vnd.ms-excel" works in IE and firefox but not in Safari
本文介绍了Response.ContentType ="应用程序/ vnd.ms - Excel中"在IE和Firefox,但不是在Safari浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有与下面的头Response.ContentType =应用程序/ vnd.ms-EXCEL一个ASP文件,它会显示文件中的Excel工作format.This在IE和Firefox,但不是在野生动物园。任何想法,为什么?
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?
推荐答案
好了,你可以尝试迫使它像这样:
Well, you can try forcing it like so:
内容类型:应用程序/力下载
内容处置:附件;文件名=somefile.txt
请说,如果你的作品。希望它帮助。
Please say if it works for you. Hope it helps.
这篇关于Response.ContentType ="应用程序/ vnd.ms - Excel中"在IE和Firefox,但不是在Safari浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文