Solved

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

Posted on 2013-05-24
1
307 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…

771 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

11 Experts available now in Live!

Get 1:1 Help Now