Click here to Skip to main content
15,920,956 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi All

First of all, sorry for my bad English.

I have a rating system with comments, I can display rating but how can I display the comments on nice way, all comments, like this page http://www.yelp.com/biz/lazy-bear-san-francisco-3[^] take a look at comment how they list down on such a nice (user) way.

The app is SQL and asp.net (C#)

SQL Database :
ID
RATE
COMENT
DATE
USER

very simple

Thanks
Posted
Updated 4-Jun-12 5:01am
v3

add your comments to a list view control:
XML
<asp:ListView ID="lv" DataSourceID="dsCommnets" runat="server">
    <ItemTemplate>
        <%#Eval("Rate") %>
        <%#Eval("COMENT") %>
        <%#Eval("DATE") %>
        <%#Eval("USER") %>
    </ItemTemplate>
</asp:ListView>

this is up to you how style this!
and if in database you put ID identity on auto increasement , put datasource sorting on Ascending.
 
Share this answer
 
My Advice Try it for AJX Rating

Below Link may help to you....


http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Rating/Rating.aspx[^]

and check out this link also

AJAX ASP.NET Rating Control[^]
 
Share this answer
 
Comments
Burim Rama 4-Jun-12 9:01am    
Thanks i using ajax Rating, how can i show all coments down there, ?

I hope you can understand my problems.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900