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 events. How can I prevent this?
I tried setting this.disabled='true'
after the click (in the onclick
attribute) via javascript, but that blocks the first postback as well.