double Click

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.
 
K

Kevin Spencer

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.
 
L

Lucas Tam

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 : )
 
S

Saber

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top