how to download a pdf file without a dialog box(asking for save,open,cancel) RRS feed

  • Question

  • User1940284240 posted


    response.addheader("contentdisposition","attachment;filename="+san+".pdf") i am getting a dialog box with options asking me whether to(save,cancel,open)... but above in the above code in place of attachment if i am using "inline"

    the dialog box is not comming and pdf is generated... but not the separate one it is attached with my form.

    i want a separate pdf file to open not with my UI form from where i am clicking the button to get pdf.

    it should be separate pdf with no dialog boxes...

    can anyone guide me.....

    Wednesday, January 25, 2012 6:52 AM


  • User-419562455 posted

    You can use hyperlink and set it properties(target="_blank")

    than copy the pdf

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 25, 2012 9:08 AM