D
Dave Loynd
Greetings all-
I am attempting to use a DataList with an embedded and databound
CheckBoxList control. As one might expect, I can add ListItems to the
CheckBoxList, but in no way have I been able to set or retrieve the Selected
property of any of these ListItems.
To perform the data binding, I hook into the ItemCreated event of the
DataList control and when it goes to create an EditItemTemplate I make the
necessary calls to perform the binding and set the Selected state of each
ListItem. Unfortunately, once the HTML is picked up by the client browser
nothing is checked and on postback anything that was checked on the browser
does not show up.
Is there some interplay between the DataList control and embedded
CheckBoxList controls I'm not aware of?
DL
I am attempting to use a DataList with an embedded and databound
CheckBoxList control. As one might expect, I can add ListItems to the
CheckBoxList, but in no way have I been able to set or retrieve the Selected
property of any of these ListItems.
To perform the data binding, I hook into the ItemCreated event of the
DataList control and when it goes to create an EditItemTemplate I make the
necessary calls to perform the binding and set the Selected state of each
ListItem. Unfortunately, once the HTML is picked up by the client browser
nothing is checked and on postback anything that was checked on the browser
does not show up.
Is there some interplay between the DataList control and embedded
CheckBoxList controls I'm not aware of?
DL