Submit送出時改變Button Enable狀態,讓使用者無法再按Submit
HTML:
<asp:button id="btnSubmit" onclick="btnSubmit_Click" runat="server" text="Submit" usesubmitbehavior="false" width="100px"> </asp:button>
C#:
protected void Page_Load(object sender, EventArgs e) { this.btnSubmit.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(btnSubmit, "click") + ";this.disabled=true; this.value='Saveing...';"); }
沒有留言:
張貼留言