How to disable a button after click it in Asp.net?
Solution :
Button1.Attributes.Add("onclick", "javascript:" + Button1.ClientID + ".disabled=true;" + ClientScript.GetPostBackEventReference(Button1,""))
This can help avoid multiple submissions by a single buttons.
No comments:
Post a Comment