user1509
user1509

Reputation: 1161

AJAX rating control: Already rated message

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?

Upvotes: 0

Views: 243

Answers (1)

Mehmet Ali Sert
Mehmet Ali Sert

Reputation: 184

If you are storing the given ratings in DB with UserID, you can check it with a callback event in code behind. If user rated, you can place a dynamic javascript function (alert, etc.) with ScriptManager.RegisterClientScriptBlock

Upvotes: 1

Related Questions