you need to set the content disposition header.
e.g. :
Code:.AddHeader("Content-Disposition", "attachment; filename=myfile.pdf")
When you put a link to a file like PDF you can open it from the web browser directly...but first it should be downloaded completley to see the contents...
But I noticed the some websites are providing the link in a way when you open it, it will open page by page not waiting for full downloading!!! (stream)
What is the way to make this happen? cause it is easy for the users and better who are having a low speed connection...
you need to set the content disposition header.
e.g. :
Code:.AddHeader("Content-Disposition", "attachment; filename=myfile.pdf")
Dan Bayley
Some of my sites
Affordable website design UK | Free Google & Yahoo sitemap generator | Karaoke discs & machines