locked
MOSS 2007 - Display "Person or Group" field in custom web part RRS feed

  • Question

  • I have a requirement to display "Person or Group" field in custom web part in MOSS 2007.

    Can someone let me know how to define "Person or Group" as property in custom web part?

    Tuesday, November 8, 2011 11:52 PM

Answers

All replies

  • Hi Vasu,

    Below is the code to use people picker in custom webppart.

    <SharePoint:PeopleEditor runat="server" ID="pplEditor"
            AutoPostBack="true" AllowEmpty="false"  Width="200px" PlaceButtonsUnderEntityEditor="false" Rows="1" />

    Also find below link to add people picker values using code 


    Thanks,
    Chanakya
    Microsoft Certified Professional
    My Blog
    Wednesday, November 9, 2011 6:22 AM
  • Hi Chanakya,

    Thank you for that.

    I want to add the picker as a property in custom web part and I am using WSS 3.0.

    Can you please let me know how to do that?

    • Marked as answer by Vasu K Thursday, November 10, 2011 12:25 AM
    • Unmarked as answer by Vasu K Thursday, November 10, 2011 12:25 AM
    Wednesday, November 9, 2011 10:40 PM
  • Chanakya,

    Never mind. I got a solution on how to add "PeopleEditor" as a property in custom web part in the following URL:

    http://fahadzia.com/blog/2009/08/peopleeditorpeoplepicker-control-as-web-part-property/

    I implemented the same and it worked for me.

    Thank you for your help.

    • Marked as answer by Vasu K Thursday, November 10, 2011 12:25 AM
    Thursday, November 10, 2011 12:25 AM