Click here to Skip to main content
15,748,049 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used ASP.NET Identity for Login and the table by default used in this is AspNetUsers. I have created separate UserInfo table with FirstName, LastName and UserId columns where UserId is the unique Identifier and referenced to AspNetUsers Id column table. Now, I want to display FirstName from UserInfo table instead of UserName from AspNetUsers.

What I have tried:

<li><a runat="server" href="~/Account/Manage" title="Manage your account">Hi,  <%: Context.User.Identity.GetUserName() %></a></li>
Updated 16-Oct-17 23:39pm
Bryian Tan 17-Oct-17 2:30am    
is this .net core ?
Rajeshyadav12 17-Oct-17 15:42pm    
No Bryian. This is ASP.NET Web form application.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900