Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. links in IE6.0

links in IE6.0

Scheduled Pinned Locked Moved ASP.NET
helpquestion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marix
    wrote on last edited by
    #1

    Hello, I need to create link to a word document in my aspx page, but my explorer always opens this link. What I need is that explorer ahould offer to download this document. I don't want to use save target menu. Is there any way to solve this problem?

    S M 2 Replies Last reply
    0
    • M Marix

      Hello, I need to create link to a word document in my aspx page, but my explorer always opens this link. What I need is that explorer ahould offer to download this document. I don't want to use save target menu. Is there any way to solve this problem?

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      Why don't you check the source code of shareware sites (webattack.com for instance). I know you are only going to see the client-side but, believe me, check out the html source, and add a tcp sniffer (http spy), and this should enough to understand how to reproduce the trick. Good luck!

      1 Reply Last reply
      0
      • M Marix

        Hello, I need to create link to a word document in my aspx page, but my explorer always opens this link. What I need is that explorer ahould offer to download this document. I don't want to use save target menu. Is there any way to solve this problem?

        M Offline
        M Offline
        Marix
        wrote on last edited by
        #3

        I heard that I need to send out some headers that shows that it will be a some kind of document??????

        S 1 Reply Last reply
        0
        • M Marix

          I heard that I need to send out some headers that shows that it will be a some kind of document??????

          S Offline
          S Offline
          Stephane Rodriguez
          wrote on last edited by
          #4

          May be the solution is to strip the Content-type HTTP header so the web browser cannot do anything relevant about the content but offer the user to download it.

          M 1 Reply Last reply
          0
          • S Stephane Rodriguez

            May be the solution is to strip the Content-type HTTP header so the web browser cannot do anything relevant about the content but offer the user to download it.

            M Offline
            M Offline
            Marix
            wrote on last edited by
            #5

            Now I have a totaly clear page, with no html tags at all. On page load I call method Response.ClearHeaders(), I think this one clears all headers. And then I redirect it to a word document. But it still opens it in IE. How to make it to offer me to download it??? Any ideas? thanx

            S 1 Reply Last reply
            0
            • M Marix

              Now I have a totaly clear page, with no html tags at all. On page load I call method Response.ClearHeaders(), I think this one clears all headers. And then I redirect it to a word document. But it still opens it in IE. How to make it to offer me to download it??? Any ideas? thanx

              S Offline
              S Offline
              Stephane Rodriguez
              wrote on last edited by
              #6

              Marix wrote: I call method Response.ClearHeaders(), I think this one clears all headers. Yes. Marix wrote: How to make it to offer me to download it??? Would you mind using whatever IIS extension to zip the .doc file before it's transmitted ? Or even make sure that .doc files are always actually .zip files. Doing so is enough to ensure the file gets downloaded instead of rendered.

              M 1 Reply Last reply
              0
              • S Stephane Rodriguez

                Marix wrote: I call method Response.ClearHeaders(), I think this one clears all headers. Yes. Marix wrote: How to make it to offer me to download it??? Would you mind using whatever IIS extension to zip the .doc file before it's transmitted ? Or even make sure that .doc files are always actually .zip files. Doing so is enough to ensure the file gets downloaded instead of rendered.

                M Offline
                M Offline
                Marix
                wrote on last edited by
                #7

                Thanx, I will try this way.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups