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. How to use Download option in ASP...

How to use Download option in ASP...

Scheduled Pinned Locked Moved Web Development
helptutorial
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Dear Friends, I have an .asp page in which I would like to give a download option for the client to download some documets. Please can some one help me to write a simple code behind the button or behind the link to get dialog box to allow the client to download the file and save it where ever he need to save.. Your quick response will be highly appreciated. Thanks Murtuza Patel.

    S 1 Reply Last reply
    0
    • L Lost User

      Dear Friends, I have an .asp page in which I would like to give a download option for the client to download some documets. Please can some one help me to write a simple code behind the button or behind the link to get dialog box to allow the client to download the file and save it where ever he need to save.. Your quick response will be highly appreciated. Thanks Murtuza Patel.

      S Offline
      S Offline
      Sushant_Mathur
      wrote on last edited by
      #2

      if u have file to be downloaded on your server just give hyperlink to that file and automatically a winodw will appear when user click on that link.... am i not right???? Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

      L 1 Reply Last reply
      0
      • S Sushant_Mathur

        if u have file to be downloaded on your server just give hyperlink to that file and automatically a winodw will appear when user click on that link.... am i not right???? Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

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

        Dear Sushant Mathur Thanks a lot for your quick response. The problem is that it is working fine for word power point or zip files. But it can not open the dialog box for .pdf or .swf files. it is trying to open these type of files directly in the browser itself. Please help me out in this way. I need that regardless of type of file it is it must be downloaded by opening the dialog box. Thanks Murtuza Patel

        V 1 Reply Last reply
        0
        • L Lost User

          Dear Sushant Mathur Thanks a lot for your quick response. The problem is that it is working fine for word power point or zip files. But it can not open the dialog box for .pdf or .swf files. it is trying to open these type of files directly in the browser itself. Please help me out in this way. I need that regardless of type of file it is it must be downloaded by opening the dialog box. Thanks Murtuza Patel

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          You can force download of any file by setting a contentType header to an unknown in the header right. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
          http://deepakvasudevan.blogspot.com/
          http://deepak.blogdrive.com/

          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