Archive

Posts Tagged ‘People Editor’

Setting value for People Editor Control using code behind as current logged in user

December 9, 2011 2 comments

Hi Friends,

How to preloaded the SharePoint people editor control with current logged in user as a following

MyPeopleEditor.CommaSeparatedAccounts =
            "SPContext.Current.Web.CurrentUser.LoginName";
MyPeopleEditor.Validate();

Happy coding.