How to show Checked Value of listitem in updatable form
I got only one value of ListItem so how to get multiple values so that all checked value will be shown in updatable form
Code :
style="margin-right: 0px" >
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
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 28, 2014, 10:37 PM EST
for (int i=0; i
if (checkboxlist1.Items[i].Selected)
{
chkvalue += checkboxlist1.Items[i].Text + "
";
}
}
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 28, 2014, 10:38 PM EST
Hi Sanket Jain,
Try this
var list = chk1.Items
.Cast<ListItem>()
.Where(item => item.Selected == true)
.Select(item => item.Value);
var SelectedValue = string.Join(",", list);
Sanket JainRank #1,789 · 835 reputationPosted Dec 29, 2014, 9:01 PM EST
But when I open this form in Updatatble mode then how to show checked symbol in both values i.e. aaa,bbb
Right now I'm getting only one checked value in design so how to show both checked value in design mode