Value returning
Pls help i want to return values from a checkbox nd display them in a listbox.i'd be greatfull if can get related coding sources.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted May 29, 2009, 3:25 AM EDT
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 29, 2009, 8:02 AM EDT
listbox1.Items.Clear();
foreach (ListItem itm in chkName.Items)
{
if (itm.Selected)
{
listbox.Items.Add(itm.Value);
}
}