.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

How to change the Display name upon Login

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :SharePoint



Am using below code to display UserName, I want to display First Name instead of username, Please give me ideas how can i change this.

Need it urgent.

<WebPartPages:DataFormWebPart runat="server" ShowWithSampleData="False" AllowRemove="True" AllowHide="True" SuppressWebPartChrome="True" PartImageLarge="" ViewContentTypeId="" ExportMode="All" Dir="Default" MissingAssembly="Cannot import this Web Part." ID="g_4e78e68a_a414_49b6_84e4_6e841afbdca8" DataSourceID="" IsIncludedFilter="" DetailLink="" AllowEdit="True" UseSQLDataSourcePaging="True" HelpMode="Modeless" IsIncluded="True" Description="" NoDefaultStyle="TRUE" FrameState="Normal" AllowConnect="True" ViewFlag="0" AllowZoneChange="True" AllowMinimize="True" Title="Channel Configuration" PartOrder="1" PageSize="-1" FrameType="Default" HelpLink="" PartImageSmall="" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="True" IsVisible="True" __MarkupType="vsattributemarkup" __WebPartId="{4E78E68A-A414-49B6-8

View Complete Post

More Related Resource Links

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.

Display UserData after Login

Very new to MVC 2.  Actually inherited a web application created in MVC 2.  After I login, I want to be able to show the users data.  I already know how to display the data on the .aspx page.  But I am having a hard time getting the Controller to access the data from the Model.  I have the Models setup and the Controller setup but can't seem to connect to the Model with the Constructor to get the data.    Any information on this is very helpful. 

How do I dynamically change and display the group of controls/content in wpf

The requirement for me is, based on some condition I need to show different group of controls on the screen. Gow do I achive this?

newbie question: change login name of dbo user


My database has a user "dbo" which is dbo of all database objects. The login name for this user is e.g. "Login1". Now I need to change the login name for user "dbo" from "Login1" to a new login name "Login2".

It is not possible to change the related login name of the user "dbo" in the user's properties dialog. And it is also not possible to change or remove the dbo relation in the login name's properties dialog (because a dbo user can not be removed).

Is there any possibility to change the login name of an dbo user? How can I do it?

How to change the login name for the dbo account?


I need to change the login name for the dbo account on several databases to the SQL sa name instead of using a Windows authentication domain name.  I haven't been able to find a way to make this change. 

Change user display name


when i add a new user from the AD to the SharePoint.

the user name is formatted like this : " domainName\username".

can i change the display name of my users to this : "username" or "firstName lastName"?

must the change be done in the Ad or within sharePoint?


WPF: how to change the ListView cell template if the content is too long, it will display as Charact


We have used the GridView inside the ListView. We fix the column width (see the following link):


if the content is too long in one cell (since we fix the column width), we want it display as CharacterEllipsis at the end

just like the TextBlock we can define TextTrimming="CharacterEllipsis"

how can we achive it?


we have used the ListViewItemStyle as following, can we modify the <GridViewRowPresenter  /> section to achive it?

  <!--ItemContainerStyle with the Trigger for selection x:Key="ListViewItemStyle"-->
  <Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}">
   <Setter Property="Background" Value="Transparent"/>
   <Setter Property="HorizontalContentAlignment" Value="Center"/>
   <Setter Property="VerticalContentAlignment" Value="Center"/>
   <Setter Property="Foreground" Value="Black"/>
   <Setter Property="Margin" Value="5,0,5,0&q

login form change ASPNETDB.mdf


Hi guys.

i have a database with username and passwords. Can anyone please help me showing how can i make the login form point to my database and do not create a new ASPNETDB.mdf file???I am thinking about using a web service to check if the user is present (is that a good idea??).

EF4 DD site, change the Display Name of a table?


I'm using .net 4 with a link to entities web application, and I"ve got the data annotations starting to work, but I'm wondering if there is a way to display a friendly name for my tables?

this code gives me a compilation error that says:

Error 1 Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. C:\Kens Files Oct 2010\Visual Studio 2008\Projects\ManagementAndDiagnosticsWeb\EFWebApp\EntityClasses\ScaffoldRules.cs 37 10 EFWebApp

public class ClientMachineMetaData

Membership Provider - Login fails after change in database name


Hi Experts,

I am in the process of deploying an website developed in ASPNet 2.0 and using the login control and membership provider features. The site was deployed fine and was working perfectly till I changed the database name and user name to access the database. I changed the accordingly in the web.config to point to the new database. Everyting is working file except when the user tries to login into the website.

The error log says that login failed because it is trying to open the old database.

Any idea how I can solve the issue? Thanks for your help.



stsadm change in 2010? login as system account problem


I have installed SharePoint 2010 beta 2 on a HP Blade in a Domain Environment. SQL Server 2008 SP1 CU2 is on a seperate Blade. Installation and configuration went ok. Everything runs under my Domain-Admin Account (SQL, Farm, ...)

The first few sites went smooth, after a while i noticed that not my Domain-Admin Account was written in the top-right corner, but "System Account". I remembered that problem from MOSS 2007 and tried stsadm updatefarmcredentials. Result after 30 seconds of waiting:
Value cannot be null.
Parameter name: farm

To be exactly i tried: stsadm -o updatefarmcredentials -userlogin XXX -userpassword XXX

There is definatly no typo and i tried varios different things like with "" and without "", with -identitytype and withou, and so on..

When i change the Farm-Account at the GUI, to a normal Account, i see my Domain-Admin Account in the top right corner again instead of System Account. When i change back, the same problem occurs.

Im pretty sure i resolved the issue in 07 with the command written above. Did the syntax change? Do i have to use Powershell? It looks like i have to specify the farm somehow (even thou there is only one farm consisting of one server on which im running the command)

Of course i'd be happy for any other solution to th

Different Navigation display when change master page



I added to global navigation "heading" and "link".

When using the V4 master page i see it, but when using the nightanday master page it doesn't shown!

should it work that way?

keren tsur

Change domain AD + upgrade Sharepoint 2007->2010 = window with a request login/password


New installation of Sharepoint 2010 in Domain_A domain. I added a content database WSS_content2007 from Sharepoint 2007 (from domain Domain_B). I didn't run the command stsadm -migrateuser. New accounts from domain Domain_A were manually added to SharePoint 2010. In table Userinfo on WSS_Content2007 on Sharepoint 2010 are accounts from both domains. Old domain Domain_B was deleted.
Users get a window with a request re-enter your username and password from time to time.
What should I do? Can I delete the account from the domain Domain_B with stsadm command? Should the column tp_title contain unique records for the same user and the same site?


How do you change the Boundfield Data Properties for CURRENCY to display a pound (or other) sign ins


Probably a Q more suited for a SQL forum, but I guess it comes up a fair bit in ASP.net web site design?

Hopefully the answer will be straightforward...

Thanks in advance.

How to change the display name for LinkTitle or Title field in a Custom List programatically


We have a requirement, where we need to create a list from "Custom List" Template, through a console application.
But we need to change the Display Name of the column named "Title" created by default to something else say "CategoryName". We do not want to remove the column but only change its display name, so that the column with name "CategoryName"still has a hyperlink and ECB menu attached to it..

The same can be done by going to list settings and changing the name of the Title column, but I am not able to figure out how to do it progrmatically.


"Title"].Title = "Some Other Name";
CustomListName.Fields["LinkTitle"].Title = "Some Other Name"

how change display name in sharepoint 2007 without domain name?


I have Moss 2007 & windows server 2003.

By default SharePoint will display 'domain\username'  but I want to change from 'domain\username' to show your actual name without domain name. i found  2 ways to modify profile information:
1- on the ssp edit profile page
2- on my site, edit my profile

but I could not get it to work. When I click on "Edit" item, it shows me "domainname\username" and it is uneditable. what is the problem?is it the other way?PLZ Help me!!!

change FBA display form in sharepoint 2007



how i can change appearance of FBA form in sharepoint 2007 or 2010?

I want to show Login part in left navigation in my site? how i can do it?

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