locked
SharePoint People Picker loses its data after postback. RRS feed

  • Question

  • I am using a people picker in a grid view in a custom visual webpart. My question is it is not loading the data after edit button click in gridview(means after postback). The data I am loading in grid view is fetching from sql table through procedure. PLease guide me. let me know if anymore details required.

    Thanks & Regards,

    Prajwal Kulkarni.

    Tuesday, November 4, 2014 7:32 AM

Answers

All replies

  • Hi,

    This should help you

    https://social.technet.microsoft.com/Forums/sharepoint/en-US/d9d70e41-251f-4bef-99d0-c4ea8d84241e/people-picker-control-used-in-aspnet-wizard-control-loses-values-on-postback?forum=sharepointdevelopmentprevious

    https://social.technet.microsoft.com/Forums/sharepoint/en-US/bd9cb6f1-c0e3-4095-877c-7a58885c2f99/how-to-validate-people-picker-control-during-postback?forum=sharepointdevelopmentlegacy


    Please remember to click 'Mark as Answer' on the answer if it helps you

    Tuesday, November 4, 2014 10:06 AM
  • Thanks for the reply. But this is not the answer.
    Tuesday, November 4, 2014 10:10 AM
  • Hi,

    Please try to store data in Session.

    Or here is a blog with a workaround for your reference:

    http://www.thesharepointblog.net/Lists/Posts/Post.aspx?List=815f255a%2Dd0ef%2D4258%2Dbe2a%2D28487dc9975c&ID=111

    Best Regards


    Dennis Guo
    TechNet Community Support

    • Proposed as answer by John NaguibMVP Wednesday, November 5, 2014 9:08 AM
    • Marked as answer by Patrick_Liang Thursday, November 13, 2014 2:09 AM
    Wednesday, November 5, 2014 8:54 AM