Click here to Skip to main content
16,016,562 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my web application , when I click more than one on a save button , then each press event data save occurred. I need to shown a message "Please wait or like that " to avoid multi save.
Posted

You might simply disable the button after saving and re-enable it later using a timer.
 
Share this answer
 
Comments
vipinsethumadhavan 24-Sep-12 6:23am    
I disabled the button ,But nothing happened
You should disable the button on client click event (OnClientClick="this.disabled=true;")and return true, and make sure that your button has UseSubmitBehavior=false on the markup.
 
Share this answer
 
Comments
vipinsethumadhavan 24-Sep-12 6:22am    
OnClientClick="fun()" UseSubmitBehavior="false"

Function below.
function fun() {
this.disabled = true;
return true;
}
In in local machine working fine. But in published site, save two time on each click.
Samer Aburabie 24-Sep-12 6:26am    
You might need to make sure that the solution is published correctly on production, you might need to do a hard refresh.

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