I have an old ASP.NET web forms application (.NET 2.0) that has a process that takes 30 seconds or so to run when a button is clicked. I need to prevent the button from being clicked twice. This will prevent posting twice, which causes duplicate data in a database.
I tried adding;
You must return true after the OnClientClick:
Any clicks in client-side must return true if the postback is to continue, it's a means of providing client-side validatin on button presses.