ASP + Launch download
Posted on 2000-05-10
I'm trying to create a link like "page.asp?fileid=1", wich will launch a download.
In my asp page, i try to send a buffer which will conatins the file, here i send 'abcdef':
Response.buffer = TRUE
Response.ContentType = "text/plain"
Response.AddHeader "Content-Disposition","attachment; filename=Caca.txt"
Response.AddHeader "Content-Length", 10
Response.Flush ' Maybe not necessary...
And after that, the browser block and is waiting.
I've tried some things like :
Response.ContentType = "text/HTML"
but anything runs.
Could anybody help me ?