Home > Microsoft SharePoint > Setting value for People Editor Control using code behind as current logged in user

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

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.

Advertisements
  1. December 28, 2011 at 7:39 am

    Some really fantastic content on this website , thankyou for contribution.

  2. Ahmed
    November 18, 2014 at 9:13 am

    Thanks, this is what i am searching for

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: