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. Closing using Ajax?

Closing using Ajax?

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
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.
  • K Offline
    K Offline
    Karthick_gc
    wrote on last edited by
    #1

    Hi friends, I use Ajax to solve the problem, when a client directly click the close button. In the i call the ajax function to delete the user details from the database. But the problem is whenever the user navigate to the other form the function was called and the user details were deleted from the DB. Is there is anyway to solve this problem?

    R 1 Reply Last reply
    0
    • K Karthick_gc

      Hi friends, I use Ajax to solve the problem, when a client directly click the close button. In the i call the ajax function to delete the user details from the database. But the problem is whenever the user navigate to the other form the function was called and the user details were deleted from the DB. Is there is anyway to solve this problem?

      R Offline
      R Offline
      Rolando CC
      wrote on last edited by
      #2

      Use the call() in the button_click event, not in body_unload

      S 1 Reply Last reply
      0
      • R Rolando CC

        Use the call() in the button_click event, not in body_unload

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        He is saying browser close event :) there is not button_click event for that ;)

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

        R 1 Reply Last reply
        0
        • S Sandeep Akhare

          He is saying browser close event :) there is not button_click event for that ;)

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

          R Offline
          R Offline
          Rolando CC
          wrote on last edited by
          #4

          I said, use the button instead of the browser. Like:

          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