Getting Started with the Rating Control
All you have to do to use our Rating
control is to register it on you page and save the received file as desired.
<%@ Register
Assembly="SharpPieces.Web.Controls"
Namespace="SharpPieces.Web.Controls"
TagPrefix="piece"
%>
Declare the control in your ASPX/ASCX code like below:
<piece:Rating
runat="server"
id="ratingRed"
CssClass="RatingRed"
CurrentRating="2"
ItemHeight="20"
MessageList="Choose...,1,2,3,4,5"
/>
Next, you need to make sure you have the css for the control set up.
.RatingContainer {display:block; float:left; clear:both; width:400px;
min-width:400px; margin-bottom:10px}
.RatingContainer .ImageContainer {float:left; background-image:url(stars.gif);
background-repeat:no-repeat; width:130px; height:20px; line-height:20px; position:relative }
.RatingContainer .TextContainer {}
.RatingContainer .ImageContainer .item {height:20px;width:22px;float:left; cursor:pointer;
cursor:hand}