Disable button on click ASP.Net 2.0 or higher (prevent double click)
There is a need, at times, to prevent the user from clicking a button?multiple?times. ?Since ASP.Net already wraps something into the onclick event, you need to change this behavior. ?Below is the code to do this:
btnSave.Attributes.Add("onclick", "this.value='Processing...';this.disabled=true;" + GetPostBackEventReference(btnSave).ToString());
btnSave is the name of the button you want to disable during postback.