Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI,
Please help me ,I have a link button on an asp.net page i want to disable it after click on it before post pack means when i click on it i want disable this button immediately after this the behind should execute please help me for resolve my problem.
Posted

Have a client side javascript running on the button click in this script you can do something like

JavaScript
document.getElementById("button1").disabled = true;


and then one the postbalc occurs you can re-enable it from server side code.
 
Share this answer
 
add following in declaration of Link Button


onClientclik="return false"
 
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