Simbios
asked on
Show FirstName and LastName of User who made a comment
I got the following code to show some comments.
protected void CommentRepeater_ItemDataBo und(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingIt em)
return;
SocialComment comment = ((SocialComment)e.Item.Dat aItem);
Literal litprice = (Literal)e.Item.FindContro l("Comment edBy");
litprice.Text = comment.Owner.DisplayName;
}
Owner is of type UserProfile
I need to show the first and last name but I dont know how
protected void CommentRepeater_ItemDataBo
{
if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingIt
return;
SocialComment comment = ((SocialComment)e.Item.Dat
Literal litprice = (Literal)e.Item.FindContro
litprice.Text = comment.Owner.DisplayName;
}
Owner is of type UserProfile
I need to show the first and last name but I dont know how
check the property called Title
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I solved it myself