public void  SelectListIndex(ListControl lc,string values)
        {
            string[] tempValues = values.Split(',');
            if (tempValues.Length > 0)
            {
                foreach (string tempvalue in tempValues)
                   foreach (ListItem li in lc.Items)
                    {
                        if (li.Value == tempvalue)                      
                            li.Selected = true;
                    }
            }
          
        }
posted on 2010-08-13 13:33  bestsaler  阅读(98)  评论(0编辑  收藏  举报