I currently have a page ReportPDF.aspx which creates a PDF and writes it to the response. I set the filename using the Content-Disposition header. However, if someone uses “Save link as…” on the link, it still saves the file as ReportPDF.aspx.
How can I use Report.pdf as filename, while still dynamically creating the PDF?
I solved it by linking to
And using the
Request.PathInfovariable to get the parameter.