Enabling a user to download a file

asp.net, c#

Solution

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

Problem

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)

Original source

Related problems