ASPNet2.0 IIS6 file download question

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
 
M

Mark Fitzpatrick

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top