在 Form Load 中設定 Button1 的 Attributes 屬性:
btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());
- Jun 08 Fri 2012 00:23
-
避免使用者重複按下 Button 按鈕
在 Form Load 中設定 Button1 的 Attributes 屬性:
btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());
請先 登入 以發表留言。