Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have generate report in excel and pdf
so i used 2 btn

excel and pdf

on click excel btn reports generate in excel
and on click pdf btn report generated in pdf

in some case on click btn excel or btn pdf report generated but takes some more time in that time if user click twice btn excel or twice btn pdf application hangs

so what i want is

on click btn excel or btn pdf both btn disable till report generated in excel or in pdf after report generated then both btn enable .

i used but not work
onlick excel method
excelbtn.visible=false
onclick pdf method
pdfbtn.visible=false

also used but not work
btnexcel.enabled=false;
Posted
Comments
The Doer 27-Apr-12 2:36am    
Show Ur code, Then only someone can suggest you, And no need to raise same question more then once... You can update the same question.

 
Share this answer
 
Comments
Prasad_Kulkarni 27-Apr-12 2:54am    
Nice to see you,
Not much active in last two days?
Work load?
hi,

you have to disable full screen with light opacity on any of both button click. So no one can click on another button after one button click. As per your talk after one button click button can't disabled till process would be completed.


So try it.
 
Share this answer
 
have a look at this article it will surely give u some way out..

http://www.abstraction.net/content/articles/preventing%20double%20form%20submit%20in%20asp.net.htm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900