Problem Retrieving Values from CheckboxList nested inside Datalist Control

M

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
 
K

Keith Patrick

CheckBoxList list =(CheckBoxList )
e.Item.FindControl("MyListIDorwhateveryounamedit");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top