Preventing people from submitting a form multiple times by repeatedly clicking the submit button can be done with a few settings. First you need to set the attribute “UseSubmitBehavior” to “false” and then add the following to the “OnClientClick” attribute: “this.disabled=true;”. Example: <asp:Button runat=”server” ID=”ButtonSave” Text=”Save” CausesValidation=”true” Enabled=”true” OnClick=”ButtonSave_Click” OnClientClick=”this.disabled=true;” UseSubmitBehavior=”false” /> I was experiencing [...]
Archive for February, 2011
Prevent multiple form submits in ASP.NET
Posted in Web Development, tagged ASP.NET, javascript on February 4, 2011 | Leave a Comment »


