Skip to Content
author's profile photo Former Member
Former Member

How to show the User Name on the Cart.aspx page when a user is connected.

Hi,

I am trying to find how I can get the User Name and display it in the top of the Cart.aspx.

For the diplay point of view, this is fine (I have created a <Literal> with a property ID, and specified it in the prerender.)

However, i can not find anywhere how to take the UserID from.

Do you know if there is a way to get this Data?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 11:21 AM

    I use something like this within the login control::

    <%@ Import Namespace="netpoint.classes" %>
    <%@ Import Namespace="netpoint.api.account" %>
    
     private NPBasePage _bp;
    
        protected void Page_Load(object sender, System.EventArgs e){
            bp = (NPBasePage)Page;
            NPUser u = new NPUser(bp.UserID);   
            Literal1.Text = u.FirstName + " " + u.Surname;
        }
    
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.