Get multiple users into a array of single SPListItem
string[] delimit = new string[] { ";#" };
DataRow dr = dt.NewRow();
string[] stringarray = item["TargetAudience"].ToString().Split((delimit), StringSplitOptions.RemoveEmptyEntries);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < stringarray.Length; i++)
{
if (i % 2 != 0)
{
sb.Append(stringarray[i].ToString()+",");
}
}
Comments