P
Paul
Hi
I am trying to create an "Update" button for my form.
So far I have got it working fine, posting back and
updating the record. Great!
However, I now want to make it so that when a user
presses "Update", the caption changes to "Updating..."
and the button disables (to prevent multiple form
submissions).
I can change the caption of the button easily enough, but
if I try disabling the button the server code fails to
run. I suppose this kind of makes sense - why would you
want to run code for a disabled button - however, to
achieve what I want I DO NEED to run the code. I have
tried calling __doPostBack from the buttons onclick event
but this doesn't work.
Any ideas?
Thanks, Paul.
I am trying to create an "Update" button for my form.
So far I have got it working fine, posting back and
updating the record. Great!
However, I now want to make it so that when a user
presses "Update", the caption changes to "Updating..."
and the button disables (to prevent multiple form
submissions).
I can change the caption of the button easily enough, but
if I try disabling the button the server code fails to
run. I suppose this kind of makes sense - why would you
want to run code for a disabled button - however, to
achieve what I want I DO NEED to run the code. I have
tried calling __doPostBack from the buttons onclick event
but this doesn't work.
Any ideas?
Thanks, Paul.