More Stupid Questions: CheckboxList

C

Child

I am using my checkboxlist as a display of true/false values, not to enter data. Is there
some way to access in code which list items are selected?

Example:
<asp:checkboxlist
id="cblist"
runat="server"
cellpadding="5"
cellspacing="5"
repeatcolumns="3"
repeatdirection="horizontal"
repeatlayout="table"
textalign="right">

<asp:listitem value="">Federal</asp:listitem>
<asp:listitem value="">State</asp:listitem>
<asp:listitem value="">Tribal</asp:listitem>

</asp:checkboxlist>

If the db record indicated that federal was true how can I in a routine select it? Or do I
need to find a different method to display this data?

--
BethF, Anchorage, AK

It's YOUR God.
They are YOUR rules.
YOU burn in hell.
 

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,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top