rating control in repeater RRS feed

  • Question

  • User518360877 posted


    I want to display the current rating of rating control from database in repeater control. And don't want to update it.

    Please help me, following is the code

    <ajax:Rating ID="ratingBudget" runat="server" CurrentRating='<%# Eval("Hotel_Rating") %>' MaxRating="5" StarCssClass="ratingEmpty" WaitingStarCssClass="ratingSaved" EmptyStarCssClass="ratingEmpty" FilledStarCssClass="ratingFilled"></ajax:Rating>

    And it's displaying the following error

    {"Specified cast is not valid."}

    Thank you

    Tuesday, September 11, 2012 2:54 AM