get people or group value into single array of single item
string[] delimit = new string[] { ";#" };
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