Wednesday, May 12, 2010

How To Display Text Or LanId Into People Picker Control

Hi Guys

Now I am Explaining How To Display LanId Into peopleEntity Control at a time of Page Load

Steps :

Create PickerEntity object and assign user name to key propertie of PickerEntity :


PickerEntity entity = new PickerEntity();
entity.Key = user.LoginName;



Also Create ArrayList For updating PeopleEntity Like this:


ArrayList entityArrayList = new ArrayList();
entityArrayList.Add(entity);
pd1.UpdateEntities(entityArrayList);

Like This O/p U can See

No comments:

Post a Comment