sharepoint循环获取人员选择器的名字

    string b = li["审批人"].ToString();
           

                SPFieldUserValueCollection userValues = li["审批人"] as SPFieldUserValueCollection;

                //循环userValues获取里面的值

                for (int i = 0; i < userValues.Count; i++)
                {

                   spr.Text += spr.Text.Length > 0 ? userValues[i].LookupValue : userValues[i].LookupValue;
                  
                }

posted @ 2014-03-15 16:28  914556495  阅读(141)  评论(0编辑  收藏  举报