Disable the asp button on click of the same button till the process ends
Posted
by Rupa
on Stack Overflow
See other posts from Stack Overflow
or by Rupa
Published on 2010-03-25T07:15:55Z
Indexed on
2010/03/25
7:23 UTC
Read the original article
Hit count: 816
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
© Stack Overflow or respective owner