APNSoft Controls []
Rating > Templates

The Rating control supports use of templates. By default you have two ways the control is oriented on the page: horizontal or vertical. Templates give additional flexibility in the disposition for segments.

A Template is a regular text file (HTML file) with standard elements: tables, images, controls, etc. By using templates you can place segments (images) into the separate DIVs, table cells, anywhere inside the Template. To insert a segment into the template you use a special variable. Available variables:
This code displays two segments in DIVs with individual absolute position:

<div style="position:absolute;left:100px;top:100px;">$SegmentIndex_0$</div>
<div style="position:absolute;left:200px;top:200px;">$SegmentIndex_1$</div>

To link the control with Template, use the Template property:

<APNSoft:APNSoftRating id="myRating" runat="server" 
    Template = "~/Templates/Numpad.html" />