Download File help

  • Thread starter Thread starter savvaschr
  • Start date Start date
S

savvaschr

Hi to all

I am a new in asp.net and this might seems a very simple question but i
need help.

I want to make a web page that will have one button and when somebody
clicks on it a file will
be able to download to a specific location on the client pc.
I want to do this using asp.net but i dont know how to do this .
Can anyone help me on that
Regards

Savvas
 
Hi,

Hi to all

I am a new in asp.net and this might seems a very simple question but i
need help.

I want to make a web page that will have one button and when somebody
clicks on it a file will
be able to download to a specific location on the client pc.
I want to do this using asp.net but i dont know how to do this .
Can anyone help me on that
Regards

Savvas

You cannot download a file to a specific location on the client PC.

What you can do is send a file back using the appropriate content-type.
This will trigger a reaction in the web browser, depending on its
configuration. Some files may be opened in the browser's window directly
(for example PDF files, if the browser is configured accordingly), some
others may be offered for download (using the "Open / Save" dialog). As
a server-side developer, you cannot know which behaviour will be applied.

HTH,
Laurent
 
Back
Top