How to Block Save button in FileDownload dialog box ?

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 2
Reputation: itsmesriin is an unknown quantity at this point 
Solved Threads: 0
itsmesriin itsmesriin is offline Offline
Newbie Poster

How to Block Save button in FileDownload dialog box ?

 
0
  #1
Jan 21st, 2008
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC