Re: Disable submit button once it is clicked.
- From: "Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Dec 2007 13:46:43 -0000
"zlf" <zlfcn@xxxxxxxxxxx> wrote in message news:uYEB60USIHA.4740@xxxxxxxxxxxxxxxxxxxxxxx
How to disable button once it is clicked on the page? The codes in click event of submit button is time-costing(about 4-5 secs), in this period, user maybe do a re-submit, that is not expected.
<asp:Button ID="cmdSubmit" runat="server" Text="Submit" OnClick="cmdSubmit_Click" OnClientClick="this.disabled=true;" />
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
.
- Follow-Ups:
- Re: Disable submit button once it is clicked.
- From: clintonG
- Re: Disable submit button once it is clicked.
- References:
- Prev by Date: web.config conflicts in virtual directories
- Next by Date: Re: 1.1 vs 2.0 Textbox Control Text on Postback
- Previous by thread: Re: Disable submit button once it is clicked.
- Next by thread: Re: Disable submit button once it is clicked.
- Index(es):