用户如何只给一次评分 [英] How to give rating only once by the user

查看:91
本文介绍了用户如何只给一次评分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在数据列表中显示一组学校名称.....用户登录并查看学校名称列表,他可以在其中对每所学校进行评分....现在的问题是如何限制用户对每个特定的学校只给一次评分...(我''曾使用过ajax评分控制..)...


有人...请帮助我...



I''m displaying a set of school names in a datalist.....A user logins and see the list of school names where he can give rating for each school....Now the question is how can restrict the user to give rating only once for each particular school...(i'' hav used ajax rating control..)...


Anyone...Please help me out...

推荐答案

答案很明显.他们需要登录才能进行评分,并且您可以根据其ID存储他们的评分,这样就知道他们已经评分了.
The answer is obvious. They need to be logged in to rate, and you store their rating against their id, so you know they have rated already.


ya dats k ..我们将存储评分. ...但是如果用户再次看到他的最早评级n想要更改...但是此操作没有完成...该评级一次是最终的....如何???
ya dats k..we''l store the rating....but if the user again he see''s his earliest rating n want to change...But this shud not be done...the rating once is final....how???


一旦您可以找到谁进行了评分,则完全由您控制.您可以编写代码以覆盖旧的评分,也可以检测到它,而不会让用户再次评分.这确实非常容易,并且完全取决于您编写代码以使其按需工作.
Once you can detect who made a rating, it''s entirely in your control what happens. You can write code that overwrites the old rating, or detects it and does not let the user rate again. That''s really pretty easy, and something that depends entirely on you writing the code to work as you want it to.


这篇关于用户如何只给一次评分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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