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;
using APNSoft.WebControls;
public partial class Rating_Template : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//Create the collection of Segments
myRating.DataBind();
RatingSegmentCollection mySegments = myRating.Segments;
//Customize segment for decimal point
mySegments[0].value = -1; //The point has the value "-1"
mySegments[0].image = "Point.gif";
mySegments[0].imageDisabled = "Point.gif";
mySegments[0].imageActive = "PointActive.gif";
mySegments[0].imageDisabledActive = "PointActive.gif";
//Customize segments for digits
for (int i = 1; i < mySegments.Count; i++)
{
int Value = i - 1;
string Image = "Num" + Value.ToString() + ".gif";
string ImageActive = "Num" + Value.ToString() + "Active.gif";
mySegments[i].value = Value;
mySegments[i].image = Image;
mySegments[i].imageDisabled = Image;
mySegments[i].imageActive = ImageActive;
mySegments[i].imageDisabledActive = ImageActive;
}
}
}
|