Disable a button on click

后端 未结 9 1566
栀梦
栀梦 2020-12-31 07:04

I have a button control. Once the user clicks on it, the click event should fire and then the button should get disabled. How can I do this? I have the option to use JQuery

9条回答
  •  长发绾君心
    2020-12-31 07:06

    add an OnClientClick="this.disabled = true;" to your button.

    If you are using Asp.net Ajax you might want to look at using PostBack Ritalin.

提交回复
热议问题