I hope I am able to explain my situation accurately.
I have an ASP.NET page that dumps out PDF files for the users with the following code:
Response.ContentType = "application/pdf";
Response.AppendHeader("content-disposition", string.Format("inline; filename={0}", getFileName(DateTime.Now)));
The reason why I use "inline" instead of "attachment", so I can force the users to view the PDF directly in the browsers instead of opening up the acrobat to view the PDFs. Everything is fine so far, but when users want to save a file, the file name which should be set to "getFileName(DateTime.Now)", instead it just takes the name of the page like myPDFpage.pdf.
Is there anyway, without setting the content-disposition to "attachment", for the users to save the file with the name I specify with the getFileName() method?
Thanks in advance. badallen