HTML:
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" Width="100px" UseSubmitBehavior="false" />
C#:
protected void Page_Load(object sender, EventArgs e) { if (this.Request.Form["__EVENTTARGET"] == btnSubmit.UniqueID) { btnSubmit.Enabled = false; } }
沒有留言:
張貼留言