Solved

Show FirstName and LastName of User who made a comment

Posted on 2011-03-23
3
357 Views
Last Modified: 2012-05-11
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

0
Comment
Question by:Simbios
  • 2
3 Comments
 
LVL 14

Expert Comment

by:GeorgeGergues
ID: 35201503
check the property called Title
0
 

Accepted Solution

by:
Simbios earned 0 total points
ID: 35202555
title has nothing to do with firstname and lastname
just with comment.Owner["firstname"]

0
 

Author Closing Comment

by:Simbios
ID: 35230127
I solved it myself
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now