D
dougloj
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
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