I am using the following code download a file from an asp.net page:
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
Response.AppendHeader("Content-Disposition", "attachment; filename=Doc.xlsx");
Response.TransmitFile(Server.MapPath("Instructions/Doc.xlsx"));
Response.End();
That works fine, but is there a way to force the user to only be able to save the file? The method above gives the Open option also which means the user can edit the file on the server, which I do not want.
The code above is executed on a button click, is it possible to have that on a link instead?