i am developing a website on writing reports …users can comment on a report (huh!! as if a new thingy ;))..back to question..what am doing is showing the comments using a listview.
Question: i want that when someone comments on his own post the row should be of different color, so that its clearly visible that the post owner has commented…I have seen this in Scott Guthrie's blog..any help is appreciated.Thanks.
You can do this with data keys and the
ItemDataBoundevent.In addition to the above, you’ll also need to wrap each item in a server control so you can adjust the background color:
Here’s some example code-behind: