How to Use AJAX Rating Control
The ASP.NET AJAX Toolkit includes a tool called "Rating Control," which allows programmers and Web masters to display a picture of a thermometer on their website with a rating scale between "0" and "10," plus a red line that rises to the number that your website is rated at. This tool, which is included with the ASP.NET AJAX Toolkit, will rate the content located on your website, giving you visual feedback.
Instructions
-
-
1
Right-click on the Web page on which you want to use the Rating Control and select "Open With," then "Notepad." The page will open in Notepad.
-
2
Paste the following code anywhere between the "<BODY>" and "</BODY>" tags:
"<form id="form1" runat="server">
<asp:NAME ID="NAME1" runat="server" />
<div>
<cc1:Rating ID="Rating1" runat="server">
</cc1:Rating>
</div>
</form>." -
-
3
Open the CSS page that corresponds to the website that you're using the Rating Control on using Notepad. Copy and paste the following code anywhere on the page:
"<ajaxToolkit:Rating runat="server" ID="Rating1"
MaxRating="5"
CurrentRating="2"
CssClass="ratingStar"
StarCssClass="ratingItem"
WaitingStarCssClass="Saved"
FilledStarCssClass="Filled"
EmptyStarCssClass="Empty"
>
</ajaxToolkit:Rating>." -
4
Save the changes, and then navigate to your website to view the Rating Control.
-
1
Tips & Warnings
A bug in the Toolkit version 1.0.10123.0 produces an error when you compile and save the pages with Rating Control added. This error is false and can be ignored. The Rating Control tool will work properly.