r p

r p

  • NA
  • 343
  • 0

Ajax Rating tool in GRIDVIEW

Dec 6 2008 7:35 PM
I have 5 questions to rate a product.
These questions are in the database and I disply these questions to the
customer in a GRIDVIEw. In order to make the rating easy, I give a tool like this-

 <ajaxToolkit:Rating runat="server" ID="Rating1"
        MaxRating="5"
        CurrentRating="0"
        CssClass="ratingStar"
        StarCssClass="ratingproducts"
        WaitingStarCssClass="Savedclass"
        FilledStarCssClass="Filledclass"
        EmptyStarCssClass="Emptyclass"
        >
    </ajaxToolkit:Rating>

This tools is part of GridView in a TEMPLATE Field. A set of 5 stars will be available against each question.
The user can rate each question by selecting the stars.
Now, when the user clicks on the SUBMIT  button, I want to receive the 'CURRENT RATING'.
At present I am giving-

Rating1.CurrentRating

But, this doesn't give me any value because the rating tool is inside GRIDVIEW1.
So, what changes should I make
in
Rating1.CurrentRating to receive the current rating value.
Any clue!

Answers (2)