button to download a file
Posted on 2004-03-26
Suppose i have this table where I list files users can download and a button
which allows user to download that file
<td> Nome file </td>
<td><input type ="Button" value ="Scarica"
ok I need to let user download the file he selected by the function download
Now I tried the second solution with no success: I open an asp file
where I send by get the filename path and add as the lines:
response.ContentType = "application/octet-stream"
response.AddHeader "Content-Disposition", "attachment; filename=" & request("file") & ";"
where 'file' is the file I want to let user download
but the IE always download the default asp page ... :-((((
My idea is simply to simulate the 'Save as' browser command
and open a window to ask user where he wants to save the file.
any idea or suggestion would be appreciated.