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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -