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 prevent duplicate entries because of multiple clicks..

How to prevent duplicate entries because of multiple clicks..

Scheduled Pinned Locked Moved ASP.NET
helpperformancetutorial
4 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.
  • D Offline
    D Offline
    Dev S
    wrote on last edited by
    #1

    Hi, I have a website in which users save thier reports but the problem is this after filling up all the information when user clicks the submit button lots of validation process takes place. So in slow speed internet connections they often press submit twice and beacuse of that information gets duplicated. I want to stop this duplicate entry. For this i tried to disable submit button when user clicks the button and enable it later on after all the processing is done but this doesnt work. Help me how to do it.

    M Y A 3 Replies Last reply
    0
    • D Dev S

      Hi, I have a website in which users save thier reports but the problem is this after filling up all the information when user clicks the submit button lots of validation process takes place. So in slow speed internet connections they often press submit twice and beacuse of that information gets duplicated. I want to stop this duplicate entry. For this i tried to disable submit button when user clicks the button and enable it later on after all the processing is done but this doesnt work. Help me how to do it.

      M Offline
      M Offline
      Meax
      wrote on last edited by
      #2

      what you can do is check for primary key violation.

      1 Reply Last reply
      0
      • D Dev S

        Hi, I have a website in which users save thier reports but the problem is this after filling up all the information when user clicks the submit button lots of validation process takes place. So in slow speed internet connections they often press submit twice and beacuse of that information gets duplicated. I want to stop this duplicate entry. For this i tried to disable submit button when user clicks the button and enable it later on after all the processing is done but this doesnt work. Help me how to do it.

        Y Offline
        Y Offline
        Yusuf
        wrote on last edited by
        #3

        simple fix for this is to use js to disable the button once it is clicked.

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        1 Reply Last reply
        0
        • D Dev S

          Hi, I have a website in which users save thier reports but the problem is this after filling up all the information when user clicks the submit button lots of validation process takes place. So in slow speed internet connections they often press submit twice and beacuse of that information gets duplicated. I want to stop this duplicate entry. For this i tried to disable submit button when user clicks the button and enable it later on after all the processing is done but this doesnt work. Help me how to do it.

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

          Devesh, There are multiple option to do it. You can use JAVA Script to Enable and disabled the button as Yusuf suggested. You can show a layer (Div)with proper message on you page which will prevent user to some more click on the page. Event Today I have read one interesting article in CP, hope this may help you Lock ASP.NET Page and Show Animated Image While Waiting for a Long Post-Back Cheers!!:beer:

          cheers, Abhijit CodeProject MVP

          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