public static string GetSelectedValues(CheckBoxList chkBoxList)
{
string selectedValue = string.Empty;
foreach (ListItem listItem in chkBoxList.Items)
{
if (listItem.Selected)
selectedValue += listItem.Value + ",";
}
return selectedValue.Trim(',');
}
Tuesday, September 22, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment