Home > Code > Javascript > Disable the Submit button when insert or update a record using JavaScript

Disable the Submit button when insert or update a record using JavaScript

by Narain Siddharth   on Nov 13, 2010   Category: Javascript   |  Views: 9124    |  Points: 25   |  Silver 



This is simple code for avoiding the multiple time clicks on the Save button while submitting the request and display the text like Processing.. to the user.

<asp:Button ID="bntSave" runat="server" OnClick="bntSave_Click" 
Text="Save" OnClientClick="this.disabled=true;this.value='Processing..';" UseSubmitBehavior="false" />





Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts