2
Answers

Accessing Dynamic Controls in Repeater

Chad Roeder

Chad Roeder

15y
3.7k
1
I have a repeater that I am dynamically generating controls for based on some DB data using a class inheriting ITemplate. I am currently generating a checkbox and a textbox for each row in the DB which is working fine. The problem is that I want the textbox to be invisible until the user clicks the checkbox corresponding to the adjacent textbox. I have wired up the click changed event, but I cannot access the textbox only the checkbox. Should I use a Delegate or some other method of enabling and disabling the visibility of the textbox.
Answers (2)