Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Does somebody know exist a control for a visualwebpart that allows to select an user/control?

I am creating a form using a visual web part and i want to allow to select an user.

I am searching for this control:

enter image description here

thanks.

share|improve this question

2 Answers

It's the PeopleEditor control. Here's the good article about it. It's about 2007 version but there's no changes in 2010.

share|improve this answer

To add the normal people picker to a web part you can use

Microsoft.SharePoint.UserControls.PeopleEditor or

<SharePoint:PeopleEditor ID="myPeoplePicker" runat="server" Width="300" BorderStyle="Solid" BorderColor="Black" BorderWidth="1" />

Check out the below link, it has complete code:

http://salaudeen.blogspot.in/2012/04/using-people-picker-in-web-parts.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.