>I normally use the following tag to create a hyperlink which will initiate the downloading of a file.
>
>This works if the file I want the user to download is an EXE. But if the file is a JPG or GIF, the tag displays the image to the user instead of initiating the download.
>
>I know that the user can right click an image and download it, but how can I get any image or file to download instead of viewing?
>
>
>
>***This brings up the save as dialog.
><a href='/temp/myexe.exe'>Click here to download</a>
>
>***This displays the image.
><a href='/temp/myimage.jpg'>Click here to download</a>
>
>
>Thanks,
>
>Jerryt
Create a folder to your downloads and set a custom httpheader for this folder in IIS.
Set it to: ContentDisposition=attachment
That should work with nearly all browsers :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca