ASP.NET c# Rating control - making it one time rating and fixed -
i'm trying follow example allow users rate seminars have attended:
how can make rating rated user once , display ratings rated user? dont want let users change own rating multiple times.
thanks!
on fruit_rating table have add userid
.
fruitid | rating | userid
and before inserting rating, have make query see if userid
made rating on fruit
, if it's true skip, else make insert.
pseudo cod below.
var currentrating = getfruit_ratingby(ratingid , userid); if(currentrating == null) { currentrating = new fruit_rating(fruitid, newrating, userid); insert(currentrating); }
if want cell readonly can override rowdatabound
event , write logic readonly
there.
Comments
Post a Comment