When using JavaScript on a ASP.NET Webforms page one can register the JavaScript function to execute using the OnClientClick attribute of the asp:button control. This can be quite usefu,l for example, when adding a script to stop duplicate submissions.
However, it is important to correctly disable the button control since using the wrong command will cause the Webform to break. (more…)
