peoplepicker控件的使用

1、注册Microsoft.SharePoint.WebControls

 

注册Microsoft.SharePoint.WebControls

 

2、拖控件

 <wssawc:PeopleEditor ID="pplEditor_MyAssistantsName" Height="30px" runat="server" SelectionSet="User" Width="350px" MultiSelect="false" />

属性的解释可以参考http://karinebosch.wordpress.com/sharepoint-controls/peopleeditor-control/

 

3、赋值、取值

 

Get Value from UserProfile

 

 

SpListItem Set Value

 

 

Get Value from Splistitem

 

 

4、在infopath中添加peoplepicker控件参见

Adding a Contact Selector/People Picker to an InfoPath Form

posted @ 2009-04-19 15:22  geek007  阅读(354)  评论(0编辑  收藏  举报