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. On web form button, prevent user from clicking the button more than 1 time

On web form button, prevent user from clicking the button more than 1 time

Scheduled Pinned Locked Moved ASP.NET
databasecsharpsql-serversysadmin
2 Posts 2 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
    dcof
    wrote on last edited by
    #1

    In a vb.net 2010 web form application that uses web form controls, there is a 'process' button where the user can click on the button lots of times. This causes problems in the application for every time the button is clicked on, that many records are created in the sql server 2016 database. I would like a solution on how to prevent the user from clicking on the button more than one time. I have a 'click button' code to catch when the button is clixked right away. But I would like to know what I can do so the user knows they cannot click the button more than once: 1. I could make the button invisible. 2. However I would either like to have a popup message and/or somewhere on the webpage saying they can click on the process button only one time. Thus can you show me the code on preferable setting up a popup menu? If not, can you show me the code on how to display the message on the web form page?

    L 1 Reply Last reply
    0
    • D dcof

      In a vb.net 2010 web form application that uses web form controls, there is a 'process' button where the user can click on the button lots of times. This causes problems in the application for every time the button is clicked on, that many records are created in the sql server 2016 database. I would like a solution on how to prevent the user from clicking on the button more than one time. I have a 'click button' code to catch when the button is clixked right away. But I would like to know what I can do so the user knows they cannot click the button more than once: 1. I could make the button invisible. 2. However I would either like to have a popup message and/or somewhere on the webpage saying they can click on the process button only one time. Thus can you show me the code on preferable setting up a popup menu? If not, can you show me the code on how to display the message on the web form page?

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

      how do I disable Button asp.net - Stack Overflow[^].

      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