How to avoid a form from double submission using asp.net

3 Comments | 794 Views | Post by: Admin | Tags: avoid a form from double submission using asp.net, avoid a form from double submission


How to avoid a form from double submission using asp.net


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


Post Comments

if you have some suggestion, question, request on How to avoid a form from double submission using asp.net.

Please use the comment box to express your views.

 

Comments:

loading...