trekmp
April 2nd, 2004, 10:11 AM
I've made a custom control that makes use of the dropdownlist and gets values from a database and this all works fine. I can pass a value to it no problem.
My problem is I've got the user control inside of a datalist and its repeated several times again with no problem.
I'm doing a simple test of looping through each item in the datalist and displaying their values. I've got labels, textboxs,checkboxs and my one user control. I can get the values by doing Dim ctr_Name As Label=CType(dlItem.FindControl("lblName"),Label) and this works fine for everything, but I cannot get it to work for my Control, which has an ID="cmbDept"
Anyone know how to get around this.
My problem is I've got the user control inside of a datalist and its repeated several times again with no problem.
I'm doing a simple test of looping through each item in the datalist and displaying their values. I've got labels, textboxs,checkboxs and my one user control. I can get the values by doing Dim ctr_Name As Label=CType(dlItem.FindControl("lblName"),Label) and this works fine for everything, but I cannot get it to work for my Control, which has an ID="cmbDept"
Anyone know how to get around this.