Hi,
I am facing this small issue. the thing is that i want to display the average rating from the database (sqldatabase). i just cannot figure it out how can i bind the radrating to sql in order to insert and display the average value. i read your databinding section of the radrating, won't be able to figure ItemBinding.ValueField property. What i want it to do is that OnRate i want to insert the value in the database and then show the average voting.
This is my aspx page code
Here is my Code behind
protected void RadRating1_Rate(object sender, EventArgs e)
{
Label1.Text = "Your Current rating is: " + ratingBar.Value.ToString();
}
With Label1 i can display the current rating and below that label i have
lblAverageRating where i want to display the average vote.
Sql database is very simple, the database file is RadRating.mdf and has one table called Vote. The table has 2 columns: ID and Rate.
From the Rate column i have to extract the average rating.
thank you so much in advance. z.