I have an image "button" which causes a postback.
I handle the "click" with
If Request.Form("btnBU7WD6_Submit.X") > 0 Then...
this works great. However, when a user double-clicks the image button the
Page_Load (postback) is processed twice. This is a problem.
Is there any easy way to detect that the image button has been double-cliked
and posted back twice?
Try creating a boolean Session Item at thee end of the click handler method
, and check for its presence before handling any subsequent clicks. If the
session item is not null at the beginning of the click handler method body,
that means it was already clicked.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
> I have an image "button" which causes a postback.
>
[quoted text clipped - 7 lines]
> Is there any easy way to detect that the image button has been double-cliked
> and posted back twice?
Will - 13 Mar 2008 17:56 GMT
Thanks Peter. That's the solution I planned on going with.
I was hoping there was a way to detect it in the Postback, but I don't see
anything.
Thanks

Signature
-Will
> Try creating a boolean Session Item at thee end of the click handler method
> , and check for its presence before handling any subsequent clicks. If the
[quoted text clipped - 16 lines]
> > Is there any easy way to detect that the image button has been double-cliked
> > and posted back twice?
Jeff Dillon - 13 Mar 2008 18:36 GMT
Disable the button client side onclick?
> Thanks Peter. That's the solution I planned on going with.
>
[quoted text clipped - 28 lines]
>> > double-cliked
>> > and posted back twice?