on 04-29-2008 5:10 AM
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.
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;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.