Disabling buttons when a form is submitted
- From: "dougloj" <dougloj@xxxxxxx>
- Date: 23 Feb 2006 22:42:15 -0800
Hi.
Can anyone tell me the best way to disable a group of buttons on an
asp.net form when the form is submitted?
I know I can't disable the submit button in JavaScript before the form
goes back to the server, because that would prevent the submission from
making it back to the server. I've found that if I set a time out in
JavaScript when the submit button is first clicked, the form gets
submitted to the server, then the time out occurs back on the client,
at which time I disable the buttons on the form. In the server code, I
re-enable the buttons before returning to the client.
This seems to work OK, but I was wondering if anyone knew of a slicker
and/or cleaner way of doing it. Any thoughts?
TIA
Doug
.
- Follow-Ups:
- Re: Disabling buttons when a form is submitted
- From: shaharh
- Re: Disabling buttons when a form is submitted
- Prev by Date: Re: Proxy auth with default credentials
- Next by Date: Re: Programmatic Forms Authentication
- Previous by thread: Proxy auth with default credentials
- Next by thread: Re: Disabling buttons when a form is submitted
- Index(es):