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 files

download files

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
4 Posts 3 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.
  • A Offline
    A Offline
    abulhassan_shock
    wrote on last edited by
    #1

    i am having a text file named ReleaseNotes.txt in my project folder. In my web page, am having a link called Download_Notes. If a user clicks the link, the file should download to the client machine. How to perform this ? Regards, abul.

    hello

    J P 2 Replies Last reply
    0
    • A abulhassan_shock

      i am having a text file named ReleaseNotes.txt in my project folder. In my web page, am having a link called Download_Notes. If a user clicks the link, the file should download to the client machine. How to perform this ? Regards, abul.

      hello

      J Offline
      J Offline
      just3ala2
      wrote on last edited by
      #2

      create a hyperlink and set the navigateUrl property to the path of the file on the server so when the client clicks on it it prompts download hope this would help

      Best Regards 3ala2 :)

      P 1 Reply Last reply
      0
      • A abulhassan_shock

        i am having a text file named ReleaseNotes.txt in my project folder. In my web page, am having a link called Download_Notes. If a user clicks the link, the file should download to the client machine. How to perform this ? Regards, abul.

        hello

        P Offline
        P Offline
        playout
        wrote on last edited by
        #3

        Hmm, not to sure how to do that, but I have a quick fix. Make the link point to the txt file, and tell the client to right click and 'save as'. EG: Download Txt

        1 Reply Last reply
        0
        • J just3ala2

          create a hyperlink and set the navigateUrl property to the path of the file on the server so when the client clicks on it it prompts download hope this would help

          Best Regards 3ala2 :)

          P Offline
          P Offline
          playout
          wrote on last edited by
          #4

          just3ala2 wrote:

          when the client clicks on it it prompts download

          This depends on what browser the client is using, or how his settings is. On my browser, IE6, it opens the textfile in the browser. A work around will be to ask the user to download by right-click on the URL and choose "save target as" option.

          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