Menu

#20 Save file dialog

Support_Request
open
ASPX (3)
5
2006-09-21
2006-08-31
boris
No

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

Discussion

  • Otto Mayer

    Otto Mayer - 2006-09-21

    Logged In: YES
    user_id=336047

    The file name cannot be set from outside.

     
  • Otto Mayer

    Otto Mayer - 2006-09-21
    • assigned_to: nobody --> otto_mayer
     
  • The Xenocide

    The Xenocide - 2008-06-17

    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.

     

Log in to post a comment.

Auth0 Logo