I have a few controls that inherit from ASP.NET buttons
and use onserverclick
.
If the user clicks twice, the button fires two server side e
You don't necessarily want to show the button disabled on postback. You want to make sure they don't accidentally submit twice. So disabling or hiding the button as a result of a server-side action is already too late in the game. By this point the 2nd request is already on it's way. You need to either do it with javascript or make sure your server side code won't run twice.