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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…