in dropdown checkbox checked value bind on lable
how to show each checked value in lable in DropDownCheckBoxes
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Devendra KumarPosted Jan 21, 2016, 2:08 AM
Prem Anandh JPosted Jan 21, 2016, 1:28 AM
{
string message = string.Empty;
foreach (ListItem item in DropDownCheckBoxes1.Items)
{
if (item.Selected)
{
message += item.Text + ":" + item.Value + ", ";
}
}
label1.Text=message