AJAX评级控件:已评级的消息 [英] AJAX rating control: Already rated message

查看:95
本文介绍了AJAX评级控件:已评级的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AJAX评级控件对文章进行评级.一切正常.但我希望为其添加功能.当用户对文章进行评分时,我想向用户发送消息.

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?

推荐答案


创建带有文章和用户的费率映射表.当用户对任何文章进行评分时,请将文章代码和用户ID及其说明存储在该表中.
现在,在文章页面的页面加载事件中,检查该表是否用户已投票.如果是,则禁用Ajax评级控件(如CodeProject).

祝一切顺利.
--Amit
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


这篇关于AJAX评级控件:已评级的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆