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. how to know the user download information?

how to know the user download information?

Scheduled Pinned Locked Moved ASP.NET
questionsysadmintutorial
3 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.
  • S Offline
    S Offline
    Seraph_summer
    wrote on last edited by
    #1

    Hello, I am using the following code to provide download funcition, when user click the download button, then a download dialog will automatically appear which with three buttons: open, save and cancel. OK, the user can select one of three. Now, I want to know how can I know which button is clicked by the user, espeically whether the user click the cancel button or not, in order to know whether the user has really downloaded the file. if the following code is not easy to do so, then any alternative solutions? Thanks! Response.ContentType = "pdf/doc/exe/chm"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + str_download_file_name_full); Response.TransmitFile(Server.MapPath("~/files/" + str_download_file_name_full)); Response.End();

    A A 2 Replies Last reply
    0
    • S Seraph_summer

      Hello, I am using the following code to provide download funcition, when user click the download button, then a download dialog will automatically appear which with three buttons: open, save and cancel. OK, the user can select one of three. Now, I want to know how can I know which button is clicked by the user, espeically whether the user click the cancel button or not, in order to know whether the user has really downloaded the file. if the following code is not easy to do so, then any alternative solutions? Thanks! Response.ContentType = "pdf/doc/exe/chm"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + str_download_file_name_full); Response.TransmitFile(Server.MapPath("~/files/" + str_download_file_name_full)); Response.End();

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Seraph_summer wrote:

      espeically whether the user click the cancel button or not, in order to know whether the user has really downloaded the file.

      AFAIK : It is not possible. :(

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      1 Reply Last reply
      0
      • S Seraph_summer

        Hello, I am using the following code to provide download funcition, when user click the download button, then a download dialog will automatically appear which with three buttons: open, save and cancel. OK, the user can select one of three. Now, I want to know how can I know which button is clicked by the user, espeically whether the user click the cancel button or not, in order to know whether the user has really downloaded the file. if the following code is not easy to do so, then any alternative solutions? Thanks! Response.ContentType = "pdf/doc/exe/chm"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + str_download_file_name_full); Response.TransmitFile(Server.MapPath("~/files/" + str_download_file_name_full)); Response.End();

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        well, AFAIK there is no way to determine whether the file is actually downloaded in this way. The file is downloaded once you postback totally. :doh: :doh: If there is any other way around, of this.. .please let me know. :thumbsup:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        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