You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > ContentRating Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ContentRating Class

Use the ContentRating server control to place a rating scale on any page of your Web site. The scale lets Ektron CMS400.NET collect feedback by giving site visitors the opportunity to rate a particular content item. A visitor can rank the content on a numerical scale of one through nine, as well as submit a text comment.

C#
[DefaultProperty("DefaultContentID"), ToolboxData("<{0}:ContentRating runat=server></{0}:ContentRating>")]
public class ContentRating : EkWebControl;
Visual Basic
<DefaultProperty("DefaultContentID"), ToolboxData("<{0}:ContentRating runat=server></{0}:ContentRating>")>
Public Class ContentRating
Inherits EkWebControl

ContentRating.cs

[Obsolete()]

Name 
Description 
The methods of the ContentRating class are listed here. 
The properties of the ContentRating class are listed here. 
 
Name 
Description 
 
Fill 
Method that can be overridden and used to grab data from the back end for each server control.  
 
Wraps the resulting collection with the Ektron Toolbars, which will only display when a user is logged in.  
 
Wrap 
Method that can be overridden and used to wrap an Ektron toolbar corresponding to a particular Control around some Html text.  
 
Name 
Description 
 
The label displayed to a user thanking them for their content rating. Defaults to "Thank you for your feedback".  
 
The label corresponding to a "Bad" content rating. This defaults to "Poor".  
 
Sets or gets the label for the number of additional characters a user may enter into the comment. The default is "Characters Remaining:"  
 
Described the layout manner which the graph is displayed to a user after content rating. The graph will be displayed to the right of the dialog in the event of Horizontal, below in the case of Vertical, and not displayed in the case of None.  
 
The message that appears when a user needs to enable cookies on their system. The default is: "We're sorry, but you must enable cookies in your browser to rate this content."  
 
Gets or Sets the Default ContentID for this Control. This is the ContentID that will be displayed if the DynamicParameter does not get a value. (e.g. index.aspx?id=2 will get the value 2 for a DynamicParameter of "id", and will display DefaultContentID otherwise.)  
 
Gets or Sets the QueryString parameter to read a Content ID dynamically. Set to "" (empty) if you wish to always display the default ContentID (static.)  
 
The label corresponding to how the user would rate the content block. Defaults to "How would you rate the usefulness of this content?".  
 
The label corresponding to a "Good" content rating. This defaults to "Outstanding".  
 
The color of the bars in the Content Rating bar graph.  
 
Describes the layout manner which the graph is displayed to a user before content rating. The graph will be displayed to the right of the dialog in the event of Horizontal, below in the case of Vertical, and not displayed in the case of None.  
 
Padding, in pixels, to be applied between the content rating input and display graph.  
 
The label corresponding to a "Good" content rating. This defaults to "Outstanding".  
 
The label displayed to a user thanking them for their content rating. Defaults to "Thank you for your feedback.".  
 
The label that appears below the graph, and lists the number of rating submissions received. The default is: "Total Ratings".  
 
The label corresponding to why the user rated content the way they did. Defaults to "Tell us why you rated the content this way".  
 
The label displayed to a user when they try to submit a content rating without selecting a value of 1-9. Defaults to "Please select a rating before submitting your feedback.".  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!