Solved

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

Posted on 2013-05-24
1
310 Views
Last Modified: 2013-05-31
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?
0
Comment
Question by:jjsather
1 Comment
 
LVL 10

Accepted Solution

by:
ecarbone earned 500 total points
ID: 39195906
I'm not sure you can bypass the dreaded 'yellow bar' in IE.
It's a security feature.

How does your web app work if you try it in Chrome or Firefox?
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question