set default filename when saving binary-written-to-browser pdf
Posted on 2004-10-06
i am displaying PDF files in a web browser using asp
i am trying to set the default filename (that appears in the file name box) when the "save a copy of the file" button is clicked, but it seems that i can't
following is my code:
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.AddHeader "Content-Disposition", "inline; filename=x.pdf"