Skip to content

Instantly share code, notes, and snippets.

@IAMIronmanSam
Last active March 14, 2016 07:25
Show Gist options
  • Select an option

  • Save IAMIronmanSam/ff77422db69904853acd to your computer and use it in GitHub Desktop.

Select an option

Save IAMIronmanSam/ff77422db69904853acd to your computer and use it in GitHub Desktop.
People Picker in custom aspx page
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=your page token here" %>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<fieldset>
<div class="form-group">
<label class="col-md-4 control-label" for="textinput">Owner</label>
<div class="col-lg-7">
<div class="input-group">
<SharePoint:ClientPeoplePicker
Required="true"
AllowEmailAddresses="true"
ValidationEnabled="true"
ID="owner"
runat="server"
InitialHelpText="Enter name/email address"
VisibleSuggestions="3"
Rows="1"
AllowMultipleEntities="false"
CssClass="ms-long ms-spellcheck-true form-control input-md"/>
</div>
</div>
</div>
</fieldset>
</asp:Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment