if(!Page.IsPostBack) { System.Text.StringBuilder s = new System.Text.StringBuilder(); s.Append("a();"); s.Append(this.GetPostBackEventReference(this.Button1)); this.Button1.Attributes.Add("onclick",s.ToString()); } a() 是 JS function a() { var ok=document.getElementById('Button1'); ok.disabled = true; return true; } //csharp/6007