Save file dialog
Brought to you by:
otto_mayer
Hello!
I have the following problem.
1. I can create the pdf file and show it in web page
(for example ShowPDF.aspx) with the method
ResponsePDF.
2. Now I want save it from File (open) dialog.
Default name that this dialog proposes me - this page
name (without aspx extension).
I want create the name from the code behind page.
But I don't know how I can supply my wished file name
to the File Open/Save dialog!
Thank you in advance.
Boris
Logged In: YES
user_id=336047
The file name cannot be set from outside.
Logged In: YES
user_id=1089438
Originator: NO
This is a bit dated, but if it will help close this ticket (as otto_mayer's information is not exactly accurate), the solution is to use the content-disposition HTTP header (Response.AddHeader or something like that) with the disposition set to "attachment" and then specify filename, google will show many examples.