double Click

  • Thread starter Thread starter Grant
  • Start date Start date
G

Grant

I am wondering what is the surest way to prevent user from double clicking
on a button and in this case it is a deposit button. Sometime the user is
impatient after clicking on the button so they would click on it again which
would double charge on the credit cards.
 
Hi Grant,

Several alternatives:

1. Handle the second click on the server - Figure out a way to know whether
the button has been clicked already, and don't respond to a second.
2. Disable the button after the first click using client-side JavaScript.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Several alternatives:

1. Handle the second click on the server - Figure out a way to know
whether the button has been clicked already, and don't respond to a
second. 2. Disable the button after the first click using client-side
JavaScript.

3. Redirect the use to a processing page : )
 
I use Sessions to prevent users to do so:
If Session("clicked") = "" Then

Session("clicked") = "something"

'Your button_click code goes here

End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top