Skip to content
May 15, 2012 / red1s

Quick Tip–Add a SharePoint 2007 people picker to your webpart


If you need to add a pre-built  SharePoint 2007 people picker control to your webparts:

clip_image001

you can use the PeopleEditor class (Make sure you’ve added the SharePoint reference to the file)

From there you can use the CommaSeparatedAccounts property

clip_image002

This will save the logged in user, which is useful for retrieving and passing those values back to the SharePoint dialog(possibly for editing purposes)

References:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.peopleeditor_properties.aspx

Advertisements

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: