簡體   English   中英

SharePoint 2013-WebPart-PeoplePicker不在CodeBehind中

[英]SharePoint 2013 - WebPart - PeoplePicker not in CodeBehind

我正在使用SharePoint 2013 WebPart。 在這里,我使用基於的標准peoplePicker-Element

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 

當我在ascx頁面上創建Element時。

<SharePoint:PeopleEditor ID="peopleEditor" runat="server"  Rows="1" IsValid="true" AllowTypeIn="true" MultiSelect="True"
            PlaceButtonsUnderEntityEditor="False" />

Intellisense可以很好地識別元素。但是在后面的代碼中無法識別。 在這里,我收到有關可能缺少的程序集的通知..但是我認為這里的一切都很好。

using Microsoft.SharePoint;

using Microsoft.SharePoint.WebControls;

我沒有一個問題的根源。希望您的幫助。 並感謝預測。

格雷茨·伊基(Greetz Iki)

好的,抱歉..我的錯..我部署了解決方案SandBox-Mode ...為了將來..如果您要使用peoplePicker,則需要進行Fram部署。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM