如何禁用下载文件对话框上的打开选项 [英] how to disable the open option on the download file dialog box
本文介绍了如何禁用下载文件对话框上的打开选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网络上有一个Excel文件.我想在网页上放置一个按钮,单击该按钮时会打开下载文件"对话框,但仅提供保存或取消的选项,我想禁用打开选项.
I have an excel file on the network. I would like to put a button on a web page that when clicked the download file dialog box opens but only gives the options of saving or cancel I want to disable the open option.
推荐答案
在< head>中添加以下行.aspx页的
部分
Add below line in <head> section of your .aspx page
<meta name="DownloadOptions" content="noopen" />
希望对您有帮助...
Hope it helps...
<元名称="DownloadOptions" content ="noopen"/>
通过在< head>中添加此标签部分,只能在Internet Explorer中使用.
FF没有解决方案.
<meta name="DownloadOptions" content="noopen" />
by adding this tag in <head> section of page, work in Internet Explorer only.
There is no solution for FF.
我认为您无法控制...如果我错了,请纠正我.
I dont think you can control that... please correct me if i am wrong.
这篇关于如何禁用下载文件对话框上的打开选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文