how do I disable Button asp.net

后端 未结 4 2161
旧时难觅i
旧时难觅i 2021-02-12 10:57

How can I disable or enable button in asp.net? I want to disable button after click to prevent double click. I am trying to disable my Login button after clicking on it.

4条回答
  •  情话喂你
    2021-02-12 11:26

    You have to disable it on client so that user could not click it again.

    To disable on server side asp.net code.

    btn.Enabled = false;
    

提交回复
热议问题