In continuation of my previous post,
Use following code needed to retrieve the user from people picker control
using
Microsoft.SharePoint.WebControls; //add a reference to Microsoft.SharePoint.dll if needed
public
class MyPage : Page
{
protected PeopleEditor
indrajeet;
…
}
public void btnSave_Click(object sender, System.EventArgs e)
{
….
PickerEntity pe = (PickerEntity) indrajeet.Entities[0]; //gets first user in list
string username = pe.Description;
…
}
No comments:
Post a Comment