To achieve this functionality, JavaScript can be utilized effectively. The following snippet of code consists of two lines that will enable you to accomplish the task:
function DisableFor10Seconds() {
document.getElementById("<% lbUpVoteUndo.ClientID %>").disabled = true;
setTimeout(function(){document.getElementById("<% lbUpVoteUndo.ClientID %>").disabled = false;},10000);
}
Although it has been some time since I delved into .NET webforms, based on my recollection, you could implement something like the following in your control:
<asp:LinkButton ID="lbUpVoteUndo" OnClientClick="Disablefor10Seconds();" />
It is worth mentioning that 10 seconds might seem like a substantial duration for users to wait. Consider if the user were to refresh the page, the button would regain its functionality after the specified time period. If you wish to maintain the disabled state for the button regardless of any actions taken by the user, storing a flag in Session or Cache and subsequently updating a client-side element with a timer could be a more suitable approach.