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. Download file from server to client

Download file from server to client

Scheduled Pinned Locked Moved ASP.NET
sysadmintutorialquestion
6 Posts 4 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.
  • C Offline
    C Offline
    chubbysilk
    wrote on last edited by
    #1

    Hello, I would like the client to be able to click a button and download a particular file off the server. Does anyone know how to do this? I was unable to find any good examples/documentation. Thanks, RC

    N L A 3 Replies Last reply
    0
    • C chubbysilk

      Hello, I would like the client to be able to click a button and download a particular file off the server. Does anyone know how to do this? I was unable to find any good examples/documentation. Thanks, RC

      N Offline
      N Offline
      Nick Seng
      wrote on last edited by
      #2

      Just put the file you want to download somewhere in your application root folder, then put up a link that points to it. For example: <a href="/downloads/myfile.doc">Download</a> would prompt out a message for the user to either open or download and save the file. HTH


      "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler. Support Bone It's a weird Life

      C 1 Reply Last reply
      0
      • C chubbysilk

        Hello, I would like the client to be able to click a button and download a particular file off the server. Does anyone know how to do this? I was unable to find any good examples/documentation. Thanks, RC

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        hello i saw your mail and i came to know you have a problem to down load files on client.its the better way that you down load your files and then share them on you client side but if you want to download files from client side then use "flashget"for downloading somthing directly. ok mail me about it. on my hotmail addess. deadman4u_42@hotmail.com. your friend. nader ashfaq rajput

        1 Reply Last reply
        0
        • N Nick Seng

          Just put the file you want to download somewhere in your application root folder, then put up a link that points to it. For example: <a href="/downloads/myfile.doc">Download</a> would prompt out a message for the user to either open or download and save the file. HTH


          "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler. Support Bone It's a weird Life

          C Offline
          C Offline
          chubbysilk
          wrote on last edited by
          #4

          I put the file in a temp folder at the root level of the application. Code as follows: Download Instead of downloading the file, it just opened and displayed it in the browser. RC

          N 1 Reply Last reply
          0
          • C chubbysilk

            Hello, I would like the client to be able to click a button and download a particular file off the server. Does anyone know how to do this? I was unable to find any good examples/documentation. Thanks, RC

            A Offline
            A Offline
            Albert Pascual
            wrote on last edited by
            #5

            Response.Redirect("FilePath.doc");

            1 Reply Last reply
            0
            • C chubbysilk

              I put the file in a temp folder at the root level of the application. Code as follows: Download Instead of downloading the file, it just opened and displayed it in the browser. RC

              N Offline
              N Offline
              Nick Seng
              wrote on last edited by
              #6

              Yeah,that happens when the file can be opened by the client machine. You can still save it though, by right-clicking on the link and select "save as"


              "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler. Support Bone It's a weird Life

              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