Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

Please answer me,


I have a linkbutton,
in Some situation I am just disabled linkbutton,but i have called javascript on it on OnclientClick="",
So i want to stop to called this javascript when Linkbutton disabled.
Posted

1 solution

in on click button you can add if condition and check whether link is enable or not according you can take action

code:

JavaScript
if (document.getElementById("linkid").disabled ==false) 
{
   //javascript code
}
 
Share this answer
 
v2
Comments
madhuri@mumbai 6-Apr-12 7:42am    
Thanks,

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