In ASP.NET, if you click a button and submit it to the background for execution, and then click the button again, two situations will occur. One is that the background code is executed twice, and the other is waiting for the previous one. After the submission action is executed, the submission action is executed again. No matter which one it is, the background code will be run twice, which is undesirable in many cases.
The following code has been tested in IE and Maxthon extreme speed modes.