Click here to Skip to main content
15,941,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

Add below line in <head> section of your .aspx page

C++
<meta name="DownloadOptions"  content="noopen" />


Hope it helps...
 
Share this answer
 
v2
<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.
 
Share this answer
 
v2
I dont think you can control that... please correct me if i am wrong.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900