Last post Aug 14, 2011 08:55 AM by email@example.com
Aug 14, 2011 03:26 AM|HenWagner|LINK
I want to prompt a save dialog to the client, to save an image from a URL. 2 questions:
Aug 14, 2011 08:55 AMfirstname.lastname@example.org|LINK
execCommand is browser-specific.
To make a URL prompt the user to download it, you need to set the HTTP header "Content-Disposition: attachment;".
You could do this in Global.asax, triggered by a request that has ?download=true in the querystring.
Then, all you need to do from your page is link to the image with a standard <a href="image.jpg?download=true" /> tag.