Solved

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

Posted on 2013-05-24
1
309 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now