Preventing accidental double clicking on a button

后端 未结 7 969
夕颜
夕颜 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:25

    In case of an updatepanel and a button inside a FormView-Template I use the following approach:

    
    

    This cancels a following postback if currently a async postback is still active. Works perfectly.

提交回复
热议问题