reference a control that has been dynamically created
Posted on 2011-03-19
I have a web project created with vs2008 and .net 3.5. I have created a radiobuttonlist control in a table cell dynamically by adding the control to the tablecell.controls collection. The problem is that I can't retrieve this control from code behind on a button click, the tablecell.controls collection returns 0 as the count.
How can I do this? I need to read the radiobuttonlist selection to perform an action.