Show FirstName and LastName of User who made a comment

I got the following code to show some comments.

 protected void CommentRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
                return;
            SocialComment comment = ((SocialComment)e.Item.DataItem);
            Literal litprice = (Literal)e.Item.FindControl("CommentedBy");
            litprice.Text = comment.Owner.DisplayName;
        }

Owner is of type UserProfile

I need to show the first and last name but I dont know how

SimbiosAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SimbiosConnect With a Mentor Author Commented:
title has nothing to do with firstname and lastname
just with comment.Owner["firstname"]

0
 
GeorgeGerguesCommented:
check the property called Title
0
 
SimbiosAuthor Commented:
I solved it myself
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.