OneClick Control

The OneClick control allows a page developer to determine if the user has submitted a form more than once without waiting for the first submision to complete.

The common use for this control is to check if a user has clicked a button more than once, while the page was still processing the first click event. This can be a problem if the click handler causes a database write to occur, or some similar process that is problematic to have happen twice.


The handler for this button causes the thread to sleep for a second, to give you artificial time to click the button more than once to test.

Result: