SweetCheeks
2009-03-20 06:50:40 UTC
How do I go through each item, and if it's selected, add the NameID to the string, with each one being separated by a comma. I plan on using this string to insert multiple rows in a second table in my database.
for example:
ListItem li = new ListItem();
foreach ( ListItem li in lstNewAnalyst.Items )
{
if ( li.Selected = true )
{
//What goes here to make a string comma delimited string?
}
}
Thanks much! ^__^