Using AutoSlickRater

  1. After adding the AutoSlickRater control to the toolbox (as described here) drag it to the page.
  2. Within the Property box, set a value for RatedID, and optionally for other properties of the control.
That's all there is to it!

Using SlickRater

With the SlickRater control you must handle the display and storage of rating values yourself. You can do this by databinding the RatedID, AverageRating, and UserRating properties, and handling the RatingChanged event.

The aspx page:

<cc1:SlickRater ID="SlickRater1" runat="server" OnRatingChanged="SlickRater1_RatingChanged">
 </cc1:SlickRater>
The code-behind page:
C#
private void Page_Load(object sender, System.EventArgs e) { SlickRater1.RatedID = "item"; SlickRater1.UserRating = 0; SlickRater1.AverageRating = 4.0m; } protected void SlickRater1_RatingChanged(object sender, EventArgs e) { // save the rating to a permanent data store }
VB.NET
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) SlickRater1.RatedID = "item" SlickRater1.UserRating = 0 SlickRater1.AverageRating = 4.0 End Sub Private Sub SlickRater1_RatingChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles SlickRater1.RatingChanged ' save the rating to a permanent data store End Sub