Click here to Skip to main content
14,391,870 members
Rate this:
Please Sign up or sign in to vote.
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
Rate this:
Please Sign up or sign in to vote.

Solution 2

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

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


Hope it helps...
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 3

<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.
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 1

I dont think you can control that... please correct me if i am wrong.
   
v2

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100