Preventing accidental double clicking on a button

后端 未结 7 949
夕颜
夕颜 2020-12-18 03:11

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

7条回答
  •  独厮守ぢ
    2020-12-18 03:42

    Someone else said this somewhere on here a few days ago, and I concur - use javascript to simply hide the button instead of disabling it; you could show a "spinner" image in its place, which lets the user know what is going on.

提交回复
热议问题