Set or Get value people editor control in SharePoint 2010 And Sharepoint 2013 with C#
How to get and set the value of a people editor control programatically in SharePoint 2007 ? Get People Editor Values This code demostrate how to get people editor control values and insert a sharepoint list SPWeb mySite = SPContext .Current.Web; SPListItemCollection listItems = mySite.Lists[ " myList " ].Items; SPListItem item = listItems.Add(); item[ "Title" ] = this .txtTitle. Text.ToString (); item[ "Location" ] = this .lblLocations. Text.ToString (); item[ " EventDate " ] = txtStart.SelectedDate ; string [] UsersSeperated = pplEditor.CommaSeparatedAccounts.Split( ',' ); SPFieldUserValueCollection UserCollection = ...