Home All Groups Group Topic Archive Search About

Problem Retrieving Values from CheckboxList nested inside Datalist Control

Author
12 Jan 2006 5:15 PM
Mike
I have a Datalist control on my page that I have binded to a table of
available categories.  In the Item Template I have a CheckboxList control
bound to the products available in each Category.  I need to pull out of the
page which products the user has selected.

I have bound the products to the CheckboxList control in the ItemDataBound
event for the Datalist.

How can I extract what checkboxes have been selected inside the Datalist?

Thanks,

Mike

Author
12 Jan 2006 8:56 PM
Keith Patrick
CheckBoxList list =(CheckBoxList )
e.Item.FindControl("MyListIDorwhateveryounamedit");