Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

PeopleEditor and PickerEntity in a webpart not submitting to SharePoint

  Asked By: Dale Dean         Date: Feb 16, 2009      Category: Sharepoint      Views: 608
 

It literally worked one time, now I just get array errors.

I am trying to submit from a usercontrol that is being hosted by a smartpart.
My code is:
PickerEntity entity = myPeopleEditorControl.Entities[0] as
PickerEntity;
Hashtable peopleEditorData = entity.EntityData;

SPUser SelectedUser = null;
SelectedUser =
SPContext.Current.Web.SiteUsers.GetByID(Convert.ToInt16(Convert.ToString(peopleE\
ditorData["SPUserID"])));

listItem["user"] = SelectedUser;
I am just hoping someone see's something I don't here.


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:                  

 

No Answers Found. Be the First, To Post Answer.

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].