I tried to create and use a People picker in my custom visual webpart by adding the Tagprefix and the peopleeditor control in my ascx page
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=184.108.40.206, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <SharePoint:PeopleEditor ID="ppUsers" runat="server" Width="350px" Height="35px" SelectionSet="User" />
When the solution is deployed , the People picker displays correctly but when I enter a loginname and press return key. It functions like a text control and adds a new line.
Everywhere I have searched i have found that it is to be used as shown above itself. Please help in finding out what I could be doing wrong here.