About CheckBoxList Control ...

K

Kylin

I have a CheckBoxList ,
and I bind this controls from a database,
cblxx.DataSource=xxData ;//dataset
cblxx.DataValueField="xx_Field";
cblxx.DataTextField="xxx_Field";
cblxx.DataBind();

now I have a a string like "1,2,3,4,5,6,7"
and the string inclue the xx_field ,
how can I bind the string to the checkboxlist ,
and if the string include the xx_field,
the item is checked ,
if not ,the item is uncheck ?

do I declare my meaning clearly ?
any help ?
thanks a lot !
 

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,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top