Mono Support how to print users name in users profile page 

Viewed 9526 time(s), 4 post(s), 12/18/2013 10:52:15 AM - by sonap
12/18/2013 10:52:15 AM
475 Reputation 52 Total posts

Hello, I was wondering how is it posible to just print the name of the user whose profile I am currently watching.
To be more specific, I am editing the AboutMe.aspx and I want to print the user's name in a <div> element.

Thank you in advance,
Panos

1
12/18/2013 10:55:29 AM
3016 Reputation 428 Total posts

Hi,

did you try to use username Url parameter?

2
12/18/2013 11:12:02 AM
475 Reputation 52 Total posts

Hello!
Thanks a lot for your reply,

I haven't. You mean this:  <a href="<# ProfileUrl #>"><# Username #></a> ?

How is it used?

Thanks,
Panos

3
12/18/2013 11:16:21 AM
3016 Reputation 428 Total posts

Hi,

take a look please at the folowing code snippet:

string username =  String.Empty;
if(UrlParams.UserProfile.UserName.HasValue)
    username = UrlParams.UserProfile.UserName.Value;
Regards.

4
This is a demo site for MonoX. Please visit Mono Software for more info.