Quantcast
Channel: PANVEGA's Blog » PeopleEditor
Viewing all articles
Browse latest Browse all 5

Getting user login from the PeopleEditor via Code

$
0
0
Assuming you have a people editor control defined like below: <wssawc:PeopleEditor AllowEmpty=”false”  ID=”myPeopleEditorControl” runat=server SelectionSet=”User” MaximumEntities=”1″ MultiSelect=”false” AllowTypeIn=”false” Width=’500px’ /> The following code sample will get you the currently logged on user’s login from the PeopleEditor control: ArrayList peEntities = myPeopleEditorControl.Entities; PickerEntity pickEn = (PickerEntity)peEntities[0]; stringLogIn = pickEn.Key; This comes handy when you want to […]

Viewing all articles
Browse latest Browse all 5

Trending Articles