Hi
I am looking to add a dynamic controls to a List collection class and use those controls dataa.
Could you please let me know how should i do it.
Thanks
Subhash
Adding dynamic controls to a List collection class
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Jan 30, 2013, 3:26 AM EST
Adding to list:
List
controlsCol.Add(new TextBox());
Retrieving from list:
var tbCtl = controlsCol[index] as TextBox;
if(tbCtl != null)
tbCtl.Text = "Foo";