Get the User Display Name from People Picker Control in SharePoint

HTML Code
  1. <SharePoint:PeopleEditor ID="pplControl" runat="server" Rows="1" PlaceButtonsUnderEntityEditor="false" Width="250px" SelectionSet="User" />   
Function to get the User display name from the people picker:
  1. public string GetSPUserDisplayName(SPWeb objSPWeb, PeopleEditor pplControl)  
  2. {  
  3.    try  
  4.    {  
  5.       string userValue = string.Empty;  
  6.       if (pplControl.Entities.Count > 0)  
  7.       {  
  8.          PickerEntity pplAssigned = (PickerEntity)pplControl.Entities[0];  
  9.          SPUser webUser = objSPWeb.EnsureUser(pplAssigned.Key);  
  10.          userValue = webUser.Name;  
  11.       }  
  12.       return userValue;  
  13.    }  
  14.    catch (Exception ex)  
  15.    {  
  16.       // Log Exception  
  17.    }  
  18. }   
Calling the function
  1. string userDisName = GetSPUserDisplayName(web, peoplePickerControl);