How to download using ASP?

Results 1 to 6 of 6

Thread: How to download using ASP?

  1. #1
    Molly Liu Guest

    Default How to download using ASP?

    How to make the ASP page to allow client download file from server to client&#039s hard disk? Like when click a link in HTML, the client will be prompted with a "Save As" dialog box.<BR><BR>Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: How to download using ASP?

    All you need to do, with ASP or HTML, is create a hyperlink to the file you want to have downloaded:<BR><BR>&#060;A HREF="">Download myprogram.exe&#060;/A><BR><BR>or<BR><BR>&#060;A HREF="">Download;/A><BR><BR>Happy Programming!

  3. #3
    Molly Liu Guest

    Default what about text file?

    Thanks for the help!<BR><BR>What if client want to download a text file? Are .exe and .zip the only file types allow to be downloaded?<BR><BR>Happy responsing! ;)

  4. #4
    Join Date
    Dec 1969

    Default RE: what about text file?

    &#060;A HREF="">Download a text file&#060;/A><BR><BR>(See<BR><BR>See, it all depends on the extension of files, to determine how the server and client handle it. .htm and .html pages are considered to be html info. Browsers display it as such. Browsers display .txt files as text files, and so on and so on...

  5. #5
    Molly Liu Guest

    Default That's the problem!

    Actually that&#039s the problem. How to make browser download the txt file to client&#039s hard disk instead of display it? Like download a exe or zip file, pomp up the Save As dialog box. I do not think client wouldl like to use Edit->Select All->Copy->Paste to Notpad or something.<BR><BR>Thanks! ;)

  6. #6
    John Harvey Guest

    Default RE: That's the problem!

    The client could right click on the link and use "Save Target As" to save the file to his local machine...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts