Download files

Discussion in 'ASP .Net' started by Poppy, Jan 27, 2004.

  1. Poppy

    Poppy Guest

    I have a webform which lists all files in a directory.

    When the user clicks on a file I want it to download. I know it is probably
    easy but I cannot figure it out.

    If I create a hyperlink then the file opens up in the browser which I do not
    want.

    The files are either excel, word or txt.

    Can anyone point me in the right direction. I feel an idiot.

    Thank you
     
    Poppy, Jan 27, 2004
    #1
    1. Advertising

  2. HOWTO: Raise a "File Download" Dialog Box for a Known MIME Type
    http://support.microsoft.com/default.aspx?scid=kb;en-us;260519

    Hope it helps

    Patrice

    --

    "Poppy" <> a écrit dans le message de
    news:%...
    > I have a webform which lists all files in a directory.
    >
    > When the user clicks on a file I want it to download. I know it is

    probably
    > easy but I cannot figure it out.
    >
    > If I create a hyperlink then the file opens up in the browser which I do

    not
    > want.
    >
    > The files are either excel, word or txt.
    >
    > Can anyone point me in the right direction. I feel an idiot.
    >
    > Thank you
    >
    >
     
    Patrice Scribe, Jan 27, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ryan Taylor
    Replies:
    2
    Views:
    1,010
    Ryan Taylor
    Nov 10, 2004
  2. Steve C. Orr [MVP, MCSD]
    Replies:
    0
    Views:
    1,659
    Steve C. Orr [MVP, MCSD]
    Mar 7, 2005
  3. Sam --
    Replies:
    2
    Views:
    656
    Sam --
    Mar 17, 2005
  4. Rafal Majda
    Replies:
    5
    Views:
    2,417
    Rafal Majda
    Apr 18, 2005
  5. Brett  Kelly
    Replies:
    1
    Views:
    714
    Steve C. Orr [MVP, MCSD]
    Jun 16, 2006
Loading...

Share This Page