Ejemplo n.º 1
0
 /// <summary>
 /// Loads the reviews.
 /// </summary>
 private void LoadReviews()
 {
     if (SiteSettings.DisplayRatings)
     {
         review.Product = _product;
         ReviewCollection reviewCollection = Store.Caching.ProductCache.GetReviewCollectionByProductID(productId);
         if (reviewCollection.Count > 0)
         {
             reviewCollection.Sort(Review.Columns.CreatedOn, false);
             rptrReviews.DataSource = reviewCollection;
             rptrReviews.DataBind();
         }
         else
         {
             lblNoReviews.Visible = true;
         }
     }
 }