Link to home
Start Free TrialLog in
Avatar of jjsather
jjsather

asked on

Make file "Save As" pop up in Aspx.net

In my code-behind, I dynamically create a PDF file based on user input and save it to a folder on the server. I now want to prompt the user to save and name it to their machine. I tried Page.Response.TransmitFile, but in IE 9, this brings up a yellow bar along the bottom, asking if the user wants to open or save the file from the localhost.

That's not what we want. Instead we want a file "save as" popup. (The same one you get when you right click an image and select "Save image as..." which allows you to specify a location and file name.)

From that yellow bar I mentioned, you can get there if you select "Save As", but I want to save the user a step and get right to that point. How can I do that programmatically?
ASKER CERTIFIED SOLUTION
Avatar of E C
E C
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial