Disable the asp button on click of the same button till the process ends
- by Rupa
Hi,
I need help in the following scenario:
On click of a SAVE button in aspx page,some processing will take place. The processing can be of 10-15 minutes.I want to disable the SAVE button till process ends and once process completes, the SAVE button should be enabled.
I tried the following but couldnot solve the problem:
1)Client Side Scripting:
I called a java script on client clik of button and set the disable property to true.How ever, server side saveButton_Click event is not called because of disabling the button on client side.
2)Disabling in saveButton_Click method on server side:
In this case, as the call of saveButton_Click already happend and requested is sent to server,the client side is as it without any difference until the request is processed.
Please help me in this asap. Its very URGENT.
Thanks
Rupa