Were you looking for a Tutorial on the Ajax Control Toolkit Rating Extender? If you were then you have reach the right place to Learn AJAX using ASP.NET and C#.

In Today’s Tutorial we will show you a simple example on how to use this simple but very useful control to put on your web forms. For instance if you are asking a few questions and you would like some sort of dynamic feedback option from your visitors, you would then use this control and insert images such as Yellow stars or Even Thumbs up so your visitors can rate your content or review or product, Similar to a movie review site or a Restaurant review website.

AJAX has made web development very dynamic and exciting, The AJAX Control toolkit has also simplified how AJAX is now used and can be used. Thanks to the AJAX it is now possible to use it virtually on any website or webform.

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.

The properties in italics are optional.

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

First Things First we will add a New WebForm to this project and name it Rating.aspx
· When using AJAX in Viausla Studio, you will always want to add a ScriptManager to the page.
· Then you will want then add a Rating control extender to whatever form you have made.
· Now we have built a simple and straight forward asking how spicy you like your food.
· We did that by adding a few panels, Labels and other controls.
· Reference the Markup Below to see how we did it. You may do this however you would like to.
· Have Fun !

The markup of the page will look like:

What your page should look like.