void LoadUserProductRating() { int userRating = ProductRatingController.GetUserRating(Utility.GetUserName(), productID); if (userRating > -1) { lblRateMessage.Text = "You rated this " + userRating.ToString() + " out of " + sr1.MaxValue.ToString(); sr1.Value = userRating; } }
protected void Product_Rated(object sender, EventArgs e) { ProductRatingController.AddUserRating(Utility.GetUserName(), productID, sr1.Value); lblRateMessage.Text = "Thank you!"; }