在 Form Load 中設定 Button1 的 Attributes 屬性:
btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());
全站熱搜
在 Form Load 中設定 Button1 的 Attributes 屬性:
btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());