Display Hello John Doe Instead of Hello [email protected]

Posted By shulemj Thu 31 Dec 2015
Add to Favorites1
Author Message
shulemj
 Posted Thu 31 Dec 2015
Supreme Being

Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)

Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115, Visits: 565
It's as simple as my header says - and I can't believe no one complained on that. I want to display "Hello John Doe" instead of "Hello [email protected]" once the customer logs in. I know basic ASP.NET, but can someone please direct me to the page that needs modification?

Thanks in advance.
jcosmo
 Posted Fri 1 Jan 2016
Supreme Being

Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)Supreme Being - (9,053 reputation)

Group: Forum Members
Last Active: Tue 16 Feb 2016
Posts: 19, Visits: 117
The place that needs the modification is UserControls/Skin/LoginStatus.ascx.

The code in place is just the default LoginName control. So you'll need to write a function to retrieve the Full Name based on the logged in user and set the FormatString on the LoginName control to the Full Name you retrieve.
shulemj Marked As Answer
 Posted Tue 5 Jan 2016
Supreme Being

Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)

Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115, Visits: 565
Thanks. I figured it the exact coding to be simple and minimal.

Go to UserControls > Skin > LoginStatus.ascx > LoginStatus.ascx.vb

Between the If line and the Else lines add the following two lines of VB:

Dim arrNameAndVAT As Array = Split(UsersBLL.GetNameandEUVAT(DirectCast(Page, PageBaseClass).CurrentLoggedUser.ID), "|||")
KartrisLoginName.FormatString = arrNameAndVAT(0)
shulemj
 Posted Fri 8 Jul 2016
Supreme Being

Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)

Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115, Visits: 565
My previous solution doesn't work anymore. Where is the code behind asp:LoginName?
Tiggywiggler
 Posted Fri 8 Jul 2016
Supreme Being

Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)Supreme Being - (105,260 reputation)

Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235, Visits: 750
Why doesn't it work? Have you tried breakpointing the code to find out where the issue occurs? Maybe you are not getting the user ID at the point that you are calling the function?

To answer your question directly, the user name will come from the membership provider, Kartris has a custom membership provider but they do not implement the Public Overloads Overrides Function GetUser(ByVal providerUserKey As Object, ByVal userIsOnline As Boolean) As System.Web.Security.MembershipUser method. when called this method returns Nothing for all paths.


We are always willing to help out the community or pitch in to help you fix a problem. However, if you want a complete solution made such as a code module or new feature added you have two options. Either
1) Reach out to the Kartris internal development team at http://www.kartris.com/Contact.aspx.
2) Contact one of the Kartris approved partners at http://www.kartris.com/t-Worldwide-Developers.aspx.

Have fun and good luck coding.
shulemj
 Posted Wed 13 Jul 2016
Supreme Being

Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)Supreme Being - (51,447 reputation)

Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115, Visits: 565
If I remember correctly, LoginStatus.ascx.vb had the code to populate the asp:LoginName control, but now I don't know where the code is now.
Mon 12 Sep 2016 by shulemj

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top