Return to Snippet

Revision: 34459
at October 22, 2010 21:22 by jonjoneshomegmailcom


Initial Code
public string Collection
        {
            get 
            {
                List<String> sb = new List<String>();

                foreach (ListItem cBox in Collections.Items)
                {
                    if (cBox.Selected)
                    {
                        sb.Add(cBox.Value);
                    }
                }

                return string.Join(",", sb.ToArray());
            }
        }

Initial URL

                                

Initial Description

                                

Initial Title
comma separated list

Initial Tags

                                

Initial Language
C#