.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

User display Name & People Picker

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
Hi, We wanted to use a web application without user profile service. We have added users their display name is always domain\username. Is it that without user profile service display names will not be updated. But my understanding is that people picker also returns display name. Is it something else we need to configure to get the displayname from the people picker itself.Satheesh

View Complete Post

More Related Resource Links

People Picker gets error when selecting user from a trusted domain(one way forest trust)

  Hello all,   Our current setup is SharePoint 2010 Foundation server in one external forest(Trusting forest), and trying to have users in a separate internal forest(Trusted forest) access the site. The external forest's DC and SharePoint server are in a DMZ separated by a firewall with the internal forest's DC and users. A one way transitive forest trust was successfully created and has been validated. On SharePoint, we're ran the sts commands to set the setapppassword as well as the peoplepicker-searchadforests adding the domain that the SharePoint server is in, as well as the trusted forest. An iisreset was issued after running these commands. In SharePoint, we can then search for users from the trusted domain, and select the users in the Select People page, but when hitting the final Ok, an error is received: An unexpected error has occurred in which a correlation ID is provided. Reviewing the SharePoint logs we find the following: <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520081665 -1073717157 41 0 66047 0;} /* Style Defin

filling current user name in people picker field when loading form using javascript


Hello guys,

I am looking is there any way to fill the current user's name in people picker field in newform.aspx using javascript?

If you anything, please let me know 


Sending emails to user from people picker - non-exchange user


Hi all another issue @ hand, our production environment is in co-existence between exchange and domino, mail flow is working fine between them as we do directory sync. now for the juicy part, when sending email notification from sharepoint, it users people picker to pick up users synced from AD. To Exchange users it goes through without issue, but to Domino users it does not, even though the AD account has the email field in account been tabulated. For Domino users we have AD account and Mail contact for mail fow. Can someone help me understand why is it so when even with the email field been tabulated in the AD accoutn for the Domino users, email notification does not go through, but when the email address of the users is hard-coded into the notification the email goes through.

SharePoint 2007 -People Picker stopped resolving user accounts after patch "February Cumulative Upda



I have a SharePoint serve 2007 farm, i was able to find users in one way trusted domains using the stsadm cmds for peoplepicker, after i installed the the patches from the February Cumulative Update (CU) i can no longer search domains for users, i have checked the stsadm peoplepicker commands and they are all still there.

i get the following when i look at the logs "Error in searching user 'domain users' : System.Runtime.InteropServices.COMException (0x8007052E): Logon failure: unknown user name or bad password" i know all passwords are good as they were working, and the search for accounts breaks as soon as the the patch is installed.





Error on Display user's fullname using Active Directory in asp.net using vb.net



wi As System.Security.Principal.WindowsIdentity =  _System.Security.Principal.WindowsIdentity.GetCurrent()



Dim a As String() = HttpContext.Current.User.

GDI+: A Primer on Building a Color Picker User Control with GDI+ in Visual Basic .NET or C#


Although most developers and APIs use the RGB scheme when working with colors, it's not the only available way to represent or select colors. For instance, the standard Windows color-selection dialog box allows you to work with the HSL color scheme in an indirect way. In this article, the author describes several color selection schemes, and uses GDI+ (via the System.Drawing namespace) to create a component that makes it possible for your own applications to provide a simpler, friendlier color chooser. Along the way, you'll get tips to help you use GDI+ in your own apps.

Ken Getz

MSDN Magazine July 2003

Passing Primary Key to User Control to Display Record Detail


I'm building a user control to display detail information on a parent record. The user control will be displayed via an Ajax Modal Popup. The user control works and is displayed when expected. The problem that I'm having is that I'm not able to pass in the primary key for the parent. The control is displayed via the _ItemCommand event of a Repeater. In the markup for the user control, I explicity set the ContactId to 0 to avoid an error when the control loads (its still underdevelopment, eventually that I'll check if the value is valid).

I was assuming that I could change the property in the _ItemCommand event, but obviously its not working.

In the Page_Load event this code successfully sets the ContactId property of the control. The _ItemCommand event appears to set the value. However when I set a test label on the user control to the Me.ContactId, its showing '0' as if it was never passed in.

        UserControlContactDetail.ContactId = "1462"
        test.Text = UserControlContactDetail.ContactId

    Protected Sub RepeaterDirectory_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles RepeaterDirectory.ItemCommand

Protected Sub RepeaterDirectory_ItemCommand(By

Jquery date picker in ASP.NET Web user control does not work


Hello, I have the most frustrating problem and being new to JQuery does make it more difficult. I have an ASP.NET web user control with an ASP.NET box which I want to apply a JQuery date picker to, then of course I have server side code which takes the date and processes it etc. The date picker will not work. I can achieve a working JQuery date picker with an ASP.NET textbox if there is no user control involved, or within the user control I use a html text box instead, but once I add runat="server" to the text box, it does not work. Is there a way I can achieve this? (the web user control will be wrapped in an update panel too which at the moment will work with the html control/web user control without the server side functionality)

<%@ Register TagPrefix="TE" TagName="JobHistory" Src="test.ascx"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">


    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

    <link h

What is the best way to create user account for big group of people?


I need to create individual account for a big group of people (around 200) from an Excel spreadsheet. What is the best practice? It will take too much time to create account using web form. I think there must be a way to do it. Please advice. I tried to use Stored procedures created by ASP.NET. NOT SURE whether it is a good idea.


Get Value of People Picker in Sharepoint

Hi Guys I have One Field called Employee Name with Field type Person or Group and second field UserID with field type is single line of text. Now i enter lets say abc xxy as name as far knowledge i know people picker store value like domain\axxy. I was wondering is there anyway with help of jquery or javascript to get axxy in Userid field once someone enter Employee name Thanks Ron

Authentication for people picker

Hi All, People picker failed to track for the domain user. an error says "No Exact match was found"   I have look into many articles and one of it actually did solved my case. But i do not know what is the logic behind.   My web application's app pool is run under local account. When i try to create a site collection and people picker failed to match with domain user. I changed the app pool account(Identity) to a domain account to run the app pool. Then i try to create site collection, and people picker can match with the domain user. I do not know why. Can please brief me on the logic behind? Possible to trace for the domain user while the web app pool is running under local user account? This is a standalone farm but joined to a domain. Whole farm is using local user account to run the service. Thanks in advance.   Regards Jason  

People Picker & Replicate Permission

Hi, We have a IT env in a test domain and it is one way trusted to the domain where the actual users are. Recently we have tried adding a new web application for a different domain users (which is again one way trusted). But the people picker in this does not return any result. Does the account which is used for people picker need replication directory permission on that domain. And the ULS log says: (All these are Verbose information) SearchFromGC name = domain2.company.com. start SearchFromGC name = domain2.company.com. returned. Result count = 1 GetAccountNameFromSid "0x010500000000000515000000358A021AB47B733407E53B2BD9260500" start GetAccountNameFromSid "0x010500000000000515000000358A021AB47B733407E53B2BD9260500" returned. returnValue=False ------------------ Can someone help me what could be the issue.  Satheesh

Is it possible to display the friendly name or email address of LiveID User Using Claims Authenticat

We have finally gotten LiveID authentication to work.  However when we specify a user to add to a sharepoint group, we need to do it via the unique id that live uses.   The user does login using their usual email address and password, but on the sharepoint side they see the PUID@live.com as the logged in user, and when we want to specify the user to have access to the a particular site or library, we have to do it by the same PUID@live.com.  This display makes it difficult to manager users on the sharepoint side.   Is there something I missed on setting up of the authentication provider, or is there something I can do to get sharepoint to retrieve the other information so that we can view the user through the email or full name that live provides?   Steve Paplanus

How to create SPUser obj or SPRoleAssignment using the user display name not using login name "domai

Suppose there is a user called "Jake Gittes" with login name "domain\jakeg". Now I want to create either SPUser/SPRoleAssignment object using the user full name ("Jake Gittes"). I tried using SPWeb.AllUsers["Jake Gittes"]. But it is throwing exception.

bind values for the drop down based on people picker value change

hi, i have a two lists in my sp. list 1 name  items user1 item1 user1 item2 user2 item1   and list 2 is in this way in this i have a people picker and a drop down when ever i change the name in people picker the value should get filled from list 1 and fill in drop down list so i need to get the on text changed event of people picker and bind it in the dropdown list could some help me out in fixing thisjayaraja

People Picker Render Error in Document Information Panel

I created a Content Type and added 3 columns.  One of those columns is a People Picker type column. When I open the Content Type by going to NEW -> MyContentType in a document library in SharePoint it opens in Microsoft Word but the People Picker control does not render correctly in the Document Information Panel. There is no error - just a display of a broken control. Is there a fix?

people picker problem, with multiple select lose the list.

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> Hi guys I have a master table with configuration for reports. when I load a InfoPath form (2010) for new report I have a approvers that set ok  , and I have  Notifies (multiple people) when I load a value form master they left me in the field only the first value(people) and lose the others. Do you know if there any way to load a multiple people value in people picker control?   Thank in advance Ramiro
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend