Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to download an image from a browser
Message
 
À
27/08/2007 11:13:43
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01250650
Message ID:
01250835
Vues:
10
This message has been marked as the solution to the initial question of the thread.
This should help:

http://west-wind.com/weblog/posts/76293.aspx

You can hook this code to a button or postback link and use a filename the user provides.

You won't be able to do it with a right click though - that happens on teh client, you'll need to have a postback and link that fires off through the server.

+++ Rick ---

>Using VS05 and C#. I have a webform that displays an image(jpg, gif). I want the user to be able to download the image to their PC. I know that the user can right click the image and choose 'Save Image as' etc..., but is there a way to have a "Download" button that initializes the download process and asks the user where they want to save the image.
>
>Thanks,
>
>Jerry
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform