Home » FAQ » ASP.NET » Controls » How can I disable a button to prevent the user from multiple clicking
In the very last line of the button1_Click subroutine, add this line: VB.NET
Button1.Enabled = False
C#
Button1.Enabled =false;
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with