Click here to Skip to main content
15,888,106 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am using the AJAX rating control to rate the articles. It is working fine. But I wish to add a functionality to it. I want to give the user a message when the user has already rated the article. How can do this?
Posted

1 solution

Hi,
Create a rate mapping table with article and user. When user rates any article, store the article code and userid in that table with description.
Now on the page load event of the article page check for that table whether the user has voted or not. If yes then disable the Ajax Rating Control Like CodeProject.

All the best.
--Amit
 
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