In dropdown checkbox checked value bind on lable
how to show each checked value in lable in DropDownCheckBoxes
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 attend5days leftRegister
Prem Anandh JRank #8,962 · 213 reputationPosted Jan 20, 2016, 8:28 PM EST
{
string message = string.Empty;
foreach (ListItem item in DropDownCheckBoxes1.Items)
{
if (item.Selected)
{
message += item.Text + ":" + item.Value + ", ";
}
}
label1.Text=message
Devendra KumarRank #3,132 · 457 reputationPosted Jan 20, 2016, 9:08 PM EST