SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the client-side onclick event to do that:
yourButton.Attributes.Add("onclick", "this.disabled=true;");