ASPNet2.0 IIS6 file download question

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

In my C#.Net 2.0 aspx file, I have a HyperLink which links to a document
file for client's downloading.
However, when client click that link, then it just opens the document on a
new browser.
But what I want is not open it on the screen, I want the document to be
saved whenever clients click that HyperLink.
Thanks for help.


Jason
 
You can't control exactly what the browser will do with the file. The
browser itself knows what to do with different file types. The best thing if
you always want a file downloaded is to put the file into a .zip since the
browser won't attempt to open it and view it.
 
Back
Top