asp.net - Using Server.TransferRequest to force download of file to browser -
i intend use asp.net server.transferrequest
send file browser without browser knowing actual path of file being downloaded. example, address download.aspx?id=123
should result in browsers save dialog popping up.
when use server.transferrequest
"redirect" to, say, pdf file, contents of pdf file sent browser; however, content shown in browser window - not surprisingly - unintelligible text.
i think there should headers attached response force browser download file, "content-disposition" header doesn't trick.
any ideas on how this?
Comments
Post a Comment