APNSoft.com - Web Controls, components for ASP.NET
 About Us 
 Articles 
 Products
 Downloads 
 Purchase
 Support

Rating
Controls Suite 4.5


Overview
Features
Reference Book
Component Parts
Deployment
Appearance Customization
Precise Customization
Templates
Server-side API
Live Demos




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:
  • $SegmentID_ABC$ - displays the segment with ID="ABC".
  • $SegmentIndex_4$ - displays the segment with index=4.
  • $SkinFolder$ - displays the path to SkinFolder.
  • ~ (tilde) - displays the path to the home directory of web application.

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" />





© 2003-2024 APNSoft. All rights reserved.    Terms of use.