csv file imbed into IE browser when click the csv file link

Ask a Question related to ASP, Design and Development.

  1. #1

    Default csv file imbed into IE browser when click the csv file link

    I have the following code. When click the link of myfile.csv, the file
    imbed into IE browser. How can I have a window popup to ask if I want
    to save or open the file? Thanks.

    <td align="center">Please click <a href="myfile.csv">here</a> to view
    your Excel file.</td>

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    eddie wang Guest

  2. Similar Questions and Discussions

    1. In web browser to view pdf, click link and it opens in same window
      Customers download pdf from a server into a web browser with multiply links in pdf. When you click the links I want it open in a new window so the...
    2. Linked file uploaded - link still points to local file
      Hi, We are faced with a strange problem in one of your Contribute sites: 2 users reported problems when linking and uploading files: user...
    3. How do I Link a .Dir (shockwave) file into a html file ?
      Hey been having troubles with trying to link *.dir files into html ..... I am fine with linking swf files... but it works different.... does anyone...
    4. Help needed with ASP form browse for file, create link to file and insert in access database
      I have a form where a user enters their name, date etc. i also want them to be able to click on a browse button and select a file which will then...
    5. on click of a link button should first save the data and then open a new browser
      Hi, A page consists of a link button. Clicking this link button should first save data in the database. If the data is saved correctly then it...
  3. #2

    Default Re: csv file imbed into IE browser when click the csv file link

    [url]http://www.aspfaq.com/show.asp?id=2161[/url]

    Ray at work

    "eddie wang" <ewang@kmg.com> wrote in message
    news:OXsIuPDwDHA.2484@TK2MSFTNGP09.phx.gbl...
    > I have the following code. When click the link of myfile.csv, the file
    > imbed into IE browser. How can I have a window popup to ask if I want
    > to save or open the file? Thanks.
    >
    > <td align="center">Please click <a href="myfile.csv">here</a> to view
    > your Excel file.</td>
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Ray at Guest

  4. #3

    Default Re: csv file imbed into IE browser when click the csv file link

    Yes, the code in [url]http://www.aspfaq.com/show.asp?id=2161[/url] works
    successfully. But, how can I:
    1. Have Open button disabled in the dialog box?
    2. Default the filename(fn) when user clicks Save?

    Thanks!!!

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    eddie wang Guest

  5. #4

    Default Re: csv file imbed into IE browser when click the csv file link


    "eddie wang" <ewang@kmg.com> wrote in message
    news:e05eWe2wDHA.2136@TK2MSFTNGP10.phx.gbl...
    > Yes, the code in [url]http://www.aspfaq.com/show.asp?id=2161[/url] works
    > successfully. But, how can I:
    > 1. Have Open button disabled in the dialog box?
    If it's possible, you cannot do it with ASP, as it would be a client-side
    setting.


    > 2. Default the filename(fn) when user clicks Save?
    Did you see this line?
    Response.AddHeader "content-disposition","attachment; filename=" & fn

    Just replace "fn" with whatever name you'd like. It just so happens that in
    this example, the actual file name on the server is being used in the header
    as well, but it could be:
    Response.AddHeader "content-disposition","attachment; filename=virus.exe"


    Ray at Guest

  6. #5

    Default Re: csv file imbed into IE browser when click the csv file link


    Okay the following works very well.
    Response.AddHeader "content-disposition","attachment; filename=" &


    Now, if I click Open, it pops up another dialog box asking me if I need
    to OPEN/Save and I have to click it again to open. Why? Thanks.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    eddie wang Guest

  7. #6

    Default Re: csv file imbed into IE browser when click the csv file link


    "eddie wang" <ewang@kmg.com> wrote in message
    news:OajES59wDHA.1272@TK2MSFTNGP12.phx.gbl...
    >
    > Okay the following works very well.
    > Response.AddHeader "content-disposition","attachment; filename=" &
    >
    Where's the filename?
    >
    > Now, if I click Open, it pops up another dialog box asking me if I need
    > to OPEN/Save and I have to click it again to open. Why? Thanks.
    I don't know. It sounds like a client-side issue.

    Ray at work


    Ray at Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139