Rating Skinning Functionality
SharpPieces Rating control should be used when you would like
to rate a picture, a short movie or a product.
It's highly skinnable, and real easy to use.
Star rating:
Star rating green:
Star rating red:
<%@ Page Language="C#" MasterPageFile="~/Demo.master" AutoEventWireup="true"
Inherits="SharpPieces.DemoApp.RatingSkinningFunctionality"
CodeBehind="ratingskinningfunctionality.aspx.cs" %>
<asp:Content ID="Content2" ContentPlaceHolderID="headPlaceHolder" Runat="Server">
<title>SharpPieces - Rating Skinning Functionality - Live Demo</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="descriptionPlaceholder" Runat="Server">
<h1>Rating Skinning Functionality</h1>
<p>SharpPieces Rating control should be used when you would like
to rate a picture, a short movie or a product.
It's highly skinnable, and real easy to use.</p>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="demoPlaceholder" Runat="Server">
Star rating:
<piece:Rating ID="rating" runat="server" ItemHeight="46"
MessageList="Choose,1,2,3,4,5" Height="9px" Width="86px" />
<hr style="clear:both"/>
Star rating green:
<piece:Rating ID="rating1" runat="server" CssClass="RatingGreen"
ItemCount="5" ItemHeight="20" AllowMultipleChanges="true" MessageList="Choose,1,2,3,4,5" />
<hr style="clear:both"/>
Star rating red:
<piece:Rating ID="rating2" runat="server" CssClass="RatingRed"
MessageList="Choose,1,2,3,4,5" CurrentRating="2" ItemHeight="20" />
<hr style="clear:both"/>
<div class="CustomNumberItems">4 stars
<piece:Rating ID="rating3" runat="server" CssClass="RatingRed" ItemCount="4"
MessageList="Choose,1,2,3,4,5" CurrentRating="2" ItemHeight="20" /></div>
<hr style="clear:both"/>
<div class="CustomNumberItems">3 stars - readonly
<piece:Rating ID="rating4" runat="server" AllowMultipleChanges="false" AllowChange="false"
CssClass="RatingGreen" ItemCount="3" MessageList="Choose,1,2,3,4,5" CurrentRating="2"
ItemHeight="20" />
</div>
</asp:Content>
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace SharpPieces.DemoApp
{
/// <summary>
/// The Rating Skinning Functionality page.
/// </summary>
public partial class RatingSkinningFunctionality : System.Web.UI.Page
{
public RatingSkinningFunctionality()
{
}
}
}