Category >
ASP.NET
|| Published on :
Monday, January 25, 2016 || Views:
8200
||
avoid a form from double submission using asp.net avoid a form from double submission
Introduction
Here Pawan Kumar will explain How to avoid a form from double submission using asp.net
Description
In previous post I have explained
How to compress response in asp.net with example,
How to display progress indicator during ajax call in asp.net using jQuery,
How to turn off submit button when it pressed in ASP.Net,
Code Snippets - Sending SMS through ASP.NET,
Cascading dropdown in ASP.NET using JQuery Http Handler,
How to add current copyright year in ASP.NET, and many more articles.
Now I will explain How to How to avoid a form from double submission using asp.net
So follow the steps to learn How to avoid a form from double submission using asp.net
//add javascript event
this.Form.DefaultButton = this.btnsubmit.UniqueID;
btnsubmit.Attributes.Add("onclick", "javascript: if ( Page_ClientValidate() ){" + btnsubmit.ClientID + ".disabled=true; " + btnsubmit.ClientID + ".value='Wait...';}" + ClientScript.GetPostBackEventReference(btnsubmit, ""));
Conclusion:
So, In this tutorial we have learned, How to avoid a form from double submission using asp.net