javascript – 禁用asp.net按钮后单击以防止双击

我有一个ASP.NET按钮,我需要禁用后,用户单击它,以防止双击。提交完成后,必须重新启用。谁能帮我这个?
我发现这:

http://tgynther.blogspot.com/2011/07/aspnet-prevent-button-double-click.html

..和它工作!

btnSave.Attributes.Add("onclick", " this.disabled = true; " + ClientScript.GetPostBackEventReference(btnSave, null) + ";");
http://stackoverflow.com/questions/5189593/disable-asp-net-button-after-click-to-prevent-double-clicking

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:javascript – 禁用asp.net按钮后单击以防止双击