Checkboxes in DataList

J

J 2 the B

I am building a user mangement page where you can change groups users
are a part of.

I have a datalist which I populate with roles (admin, manager,
support, etc). Each role has a checkbox.

I want to pre-select the checkboxes of the groups the user is a part
of when the datalist is built.

I assume I have to do something in ItemDataBound, but I'm not really
having any success. I know I need to get a list of roles that the user
is in (which I have). But how so I compare the complete list of user
groups to the ones the user is subscribed to, and check the
appropriate checkboxes?

Any suggestions on how to do this?

Thanks.
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top