Ajax contorl toolkit Rating Demonstration

Rating Demonstration
How spicy do you like your Thai food?  
Alignment:
Direction:



[No response provided yet]
Rating Description

The Rating control provides an intuitive rating experience that allows users to select the number of stars that represents their rating. The page designer can specify the initial rating, the maximum rating to allow, the alignment and direction of the stars, and custom styles for the different states a star can have. Rating also supports a ClientCallBack event that allows custom code to run after the user has rated something.

Rating Properties

The control above is initialized with this code. The italic properties are optional:

<ajaxToolkit:Rating ID="ThaiRating" runat="server"
    CurrentRating="2"
    MaxRating="5"
    StarCssClass="ratingStar"
    WaitingStarCssClass="savedRatingStar"
    FilledStarCssClass="filledRatingStar"
    EmptyStarCssClass="emptyRatingStar"
    OnChanged="ThaiRating_Changed" /> 
  • AutoPostBack - True to cause a postback on rating item click.
  • CurrentRating - Initial rating value
  • MaxRating - Maximum rating value
  • ReadOnly - Whether or not the rating can be changed
  • StarCssClass - CSS class for a visible star
  • WaitingStarCssClass - CSS class for a star in waiting mode
  • FilledStarCssClass - CSS class for star in filled mode
  • EmptyStarCssClass - CSS class for a star in empty mode
  • RatingAlign - Alignment of the stars (Vertical or Horizontal)
  • RatingDirection - Orientation of the stars (LeftToRightTopToBottom or RightToLeftBottomToTop)
  • OnChanged - ClientCallBack event to fire when the rating is changed
  • Tag - A custom parameter to pass to the ClientCallBack

Ajax control toolkit Rating example with demo in asp .net

In this asp .net tuotiral you will learn about ajax control toolkit Rating,ajax control toolkit Rating Extender,ajax control toolkit pie chart sample,ajax control toolkit Rating Demo,ajax control toolkit Rating with database,ajax control toolkit Rating tutorial


 
50+ C# Programs for beginners to practice