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; } btnSave.Attributes.Add("onclick","this.disabled='true';"+GetPostBackEventReference(btnSave));
by: 发表于:2017-10-31 11:02:28 顶(0) | 踩(0) 回复
??
回复评论