Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
i have a box where i display a comment and i want to let other users to rate this comment by pressing Plus or Minus button and every user must vote only once.
i have wrote that by saving user ip address so that every comment has associated ips that voted to that comment.
next time i can check the ip address and let user to vote or not. another thing is that there no authentication in my site (any one can vote)
but i feel bad about this, any one has better idea??

here is a small screen shot of what im gonna do:

http://axgig.com/images/24738083558435364695.jpg

Thank you all for reading or answering
Posted
Updated 1-Aug-13 19:45pm
v3
Comments
Maciej Los 1-Aug-13 15:41pm    
I'm bit confused...
What is an exact question?
RedSakura 2-Aug-13 1:46am    
i want to create a plus and minus button for every comment, and evey user is allowed to rate just once.
TryAndSucceed 1-Aug-13 16:14pm    
So, is it the Authentication you are worried about or the Plus or Minus functionality?
RedSakura 2-Aug-13 1:44am    
Plus and Minus actually

1 solution

All you need to do is to create "custom control" which provides described functionality:
Creating an ASP .NET MVC 3 User Control with a Partial View[^]
Custom controls in ASP.NET MVC[^]

Two interesting articles about:
Creating an Up and Down Voting User Interface (ASP.NET)[^]
Building a Star Rating System with ASP.NET MVC and jQuery[^]

Other sources:
ASP.NET MVC 2 Voting Control[^]

I hope it would be enough for start ;)
 
Share this answer
 

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