1

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.

3 Answers 3

5

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

4

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

-2

http://sharepointbyte.com/how-to-call-a-people-picker-in-visual-web-part-in-sharepoint-4/

Check out the above link, it has complete code:

1
  • Please donot provide only the links to the answer, kindly try to get the idea and put it on your own words here. so that it will be like adding more credit to this site rather than navigating to another site for answer. Oct 28, 2013 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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