1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

File download

Discussion in 'ASP' started by vikas, Jun 27, 2007.

  1. vikas

    vikas New Member

    Joined:
    May 31, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Allahabad (U.P)
    I have a link to text file which is on my server. When the user clicks on the link the textfile simply displays in a new window.
    What i want to happen is that the file is able to be downloaded to the users machine.

    How do i set this up?
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Add a content-disposition headaer, using .htaccess if you are using Apache server!
     

Share This Page