Click to See Complete Forum and Search --> : Five star rating sample script needed.


gilma_x
08-24-2005, 01:14 AM
Hi,

i am looking for a sample script to add in my site. like amazon style. llike a 5 star rating for each item, along with a area where user can enter their
comments and rating. and i also it must allow the user to enter only once...

i have a sample in Javascript, but i need something in VB.NET..

any help, any link, appericated..thx

GIL

gilma_x
08-26-2005, 06:38 AM
I have created a table MSSQL that contain values and published into Datagrid.
The table is typically like this..

Tbl

Article Rating Count
1 3 3
2 0 0
3 2 1
4 4 5

Now I would like to Display images like Star instead of Numbers in the
Rating Column. Typically like this

Article Rating Count
1 * * * 3
2 - 0
3 ** 1
4 **** 5
i am new to ASP.NET, I am trying to figure it out but have no idea. any help ?

THx

gRoberts
09-09-2005, 11:36 AM
How are you using this? Do you have a table in which when someone rates the content, it add's the content id and the rating or does it add the rating to a list of previous ratings?

I.E
RecordID|ContentID|Rating
1| 1| 3
2| 1| 2
3| 1| 5
4| 1| 1

or

ContentID|Ratings (Seperated by comma's, spaces, pipes, etc )
1| 3 2 5 1
2| 5 5 5 5
3| 4 2
4|
5| 5 2 1 5

Gav