获取ListBox中多选值

最近在iteye网站发布不了,只能在这里做个笔记

不知道各位高手还有没有其他方法获取listbox的多选值

      for (int i = 0; i < ListBox1.Items.Count; i++)
            {
                ListItem listItem = ListBox1.Items[i];
                if (listItem.Selected == true)
                {
                    //str += listItem.Text;
                }
            }

posted @ 2011-09-11 20:41  walleyekneel  阅读(455)  评论(0编辑  收藏  举报