例如: protected void Page_Load(object sender, EventArgs e) { //.net1.1 Button1.Attributes.Add(“onclick”, “this.disabled=true;” + this.GetPostBackEventReference(this.Button1)); //.net 2.0以上 Button1.Attributes.Add(“onclick”, “this.disabled=true;” + this.