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_Segments : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//Create the collection of Segments
myRating.DataBind();
RatingSegmentCollection mySegments = myRating.Segments;
//Configure segments
for (int i = 0; i < mySegments.Count; i++)
{
//Set new ID
mySegments[i].id = "s" + (i + 1).ToString();
//Set new value
mySegments[i].value = (i + 1) * 10;
//Set tooltip (title)
mySegments[i].title = "ID:" + mySegments[i].id + " value:" + mySegments[i].value.ToString() + " index:" + i.ToString();
}
}
}
|