string lastValue = string.Empty;
int lastIndex=0;
foreach (ListItem listitem in chkSec.Items)
{
if (listitem.Selected)
{
int thisIndex = chkSec.Items.IndexOf(listitem);
if (lastIndex < thisIndex)
{
lastIndex = thisIndex;
lastValue = listitem.Value;
}
}
}
0 comments:
Post a Comment