Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to read checklist fieldtype in aspx page defined in sitecore?
Posted

1 solution

C#
List<int> _CheckedValueIndex = new List<int>();

for (int i = 0;i<chklist.items.count;i++)>
{
    if (chklist.Items[i].Selected)
    {
        _CheckedValueIndex.Add(i + 1);
    }
}
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900