DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   How to Block Save button in FileDownload dialog box ? (http://www.daniweb.com/forums/thread105602.html)

itsmesriin Jan 21st, 2008 7:42 am
How to Block Save button in FileDownload dialog box ?
 
Hi All,

I have been trying to find out how to hide the save button in a file download dialog box in a aspx page.I open the attachment like this :

byte[] byteFileContent = (byte[])objContentTable.Rows[0]["theContent"];
Response.ClearContent();
Response.ClearHeaders();
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment;filename=Chapter.pdf");
Response.BinaryWrite(byteFileContent);
Response.End();

i get the file download dialog with open,save and cancel options but i dont want the save option to be given to the user. Can anyone help me on this ?

Thank you


All times are GMT -4. The time now is 2:24 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC