Author: sagar.ag | Posted on: 1/23/2009 8:35:34 AM | Views : 313

Hello,
 
I've a Hyperlink control and two check boxes added dynamically (something like: Protected
Hyperlink mylink = new Hyperlink(); similar coding is done for 2 check boxes
too).
When i click check box 1 then i want to disable the Hyperlink using java
script and when i click on check box 2 i want to enable it. I'm setting the
NavigateUrl property of the Hyperlink in the CS file.
Following is a
small snippet of code i've in my app.
str = "<script
language=\"javascript\"> function myFunc() {
document.getElementById('" + mylink.ClientID + "').Disabled = true;}
</script>"
Go to the complete details ...