Sharepoint SP用户字段

发布于 2024-08-20 04:07:39 字数 162 浏览 3 评论 0原文

是否可以在自定义 aspx 页面中使用 SPUserField,而无需将 SPUserField 绑定到字段(它总是要求提供 FieldName)。 我基本上有一个自定义页面,最终创建一个列表项,我希望用户能够从标准 Sharepoint 控件中选择另一个用户...

谢谢

Is it possible to use the SPUserField in a custom aspx page without the SPUserField being bound to a field (it always asks for FieldName).
I basically have a custom page which ultimately creates a list item, i want the user to be able to pick another user from the standard Sharepoint control...

??

Thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阪姬 2024-08-27 04:07:39

在这种情况下,您可以使用 PeopleEditorMicrosoft.SharePoint.WebControls 命名空间的 code> 控件。例如,在我的其中一个页面中:

 <wssawc:PeopleEditor 
     AllowEmpty="false" id="allReviewers" runat="server"
     SelectionSet="User" width='500'/>   

In this case you can use PeopleEditor control from Microsoft.SharePoint.WebControls namespace. For instance, in one of my pages:

 <wssawc:PeopleEditor 
     AllowEmpty="false" id="allReviewers" runat="server"
     SelectionSet="User" width='500'/>   
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文