I am working on an image gallery, and on the browse image module, I have a download icon. I need it to behave as a download button. When the user clicks on it, they should be presented with save file dialog, or the file should be downloaded using their default browser download set-up.
I tried many ways, but no luck.
-
The download Icons appear in a Modal-popup and hence all code is wrapped inside UpdatePannel
-
These images are of different formats (jpeg, gif, tif, psd)
Look at http://www.codeproject.com/Articles/74654/File-Download-in-ASP-NET-and-Tracking-the-Status-o or Best way to stream files in ASP.NET