Custom people picker control set data
<span class="formlable">
<spuc:PeopleEditor ID="pplAssignedTo" runat="server" AllowEmpty="true" MultiSelect="false" SelectionSet="User" />
</span>
string primaryUser = string.Empty;
if (pplAssignedTo.ResolvedEntities.Count > 0)
{
PickerEntity pickerEntity = (PickerEntity)pplAssignedTo.ResolvedEntities[0];
primaryUser = pickerEntity.Key;
SPUser user = SPContext.Current.Web.EnsureUser(primaryUser);
oCurrentItem[Const.QA_DOC_REVIEWER] = user.ID;
}
No comments:
Post a Comment