2015-11-18 42 views
0

我正在使用SharePoint 2013 WebPart。在這裏,我使用標準peoplePicker-元素基於SharePoint 2013 - WebPart - PeoplePicker不在CodeBehind

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

當我的ascx頁面上創建的元素..

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

智能感知識別元素很好..但不是在後面的代碼。在這裏我得到一個通知有關潛在缺少組件..但我認爲一切都很好,在這裏..

using Microsoft.SharePoint; 

using Microsoft.SharePoint.WebControls; 

我沒有一個單一的線索是什麼問題。希望對你有所幫助。 並感謝預測。

格爾茨 壹岐

回答

0

好對不起..我的錯。我部署的soltion沙盒模式......對於未來..你需要有一個弗拉姆-Deployement如果你想使用peoplePicker ..