protected void Page_Load(object sender, EventArgs e)
 {
     if (!int.TryParse(this.Page.Request.QueryString["ReviewId"], out this.reviewId))
     {
         base.GotoResourceNotFound();
     }
     else
     {
         this.btnReplyProductConsultation.Click += this.btnReplyProductConsultation_Click;
         if (!this.Page.IsPostBack)
         {
             ProductReviewInfo productReview = ProductCommentHelper.GetProductReview(this.reviewId);
             if (productReview == null)
             {
                 base.GotoResourceNotFound();
             }
             else
             {
                 this.Score = productReview.Score.ToString();
                 this.litConsultationText.Text = productReview.ReviewText;
                 this.lblReply.Text            = productReview.ReplyText;
                 if (productReview.ReplyDate.HasValue)
                 {
                     this.txtReply.Visible = false;
                     this.btnReplyProductConsultation.Visible = false;
                 }
                 else
                 {
                     this.lblReply.Visible = false;
                 }
                 if (!string.IsNullOrEmpty(productReview.ImageUrl1))
                 {
                     this.linkImageUrl1.Visible = true;
                     this.linkImageUrl1.HRef    = productReview.ImageUrl1;
                     this.imgImageUrl1.ImageUrl = "/Admin/PicRar.aspx?P=" + productReview.ImageUrl1 + "&W=40&H=40";
                 }
                 if (!string.IsNullOrEmpty(productReview.ImageUrl2))
                 {
                     this.linkImageUrl2.Visible = true;
                     this.linkImageUrl2.HRef    = productReview.ImageUrl2;
                     this.imgImageUrl2.ImageUrl = "/Admin/PicRar.aspx?P=" + productReview.ImageUrl2 + "&W=40&H=40";
                 }
                 if (!string.IsNullOrEmpty(productReview.ImageUrl3))
                 {
                     this.linkImageUrl3.Visible = true;
                     this.linkImageUrl3.HRef    = productReview.ImageUrl3;
                     this.imgImageUrl3.ImageUrl = "/Admin/PicRar.aspx?P=" + productReview.ImageUrl3 + "&W=40&H=40";
                 }
                 if (!string.IsNullOrEmpty(productReview.ImageUrl4))
                 {
                     this.linkImageUrl4.Visible = true;
                     this.linkImageUrl4.HRef    = productReview.ImageUrl4;
                     this.imgImageUrl4.ImageUrl = "/Admin/PicRar.aspx?P=" + productReview.ImageUrl4 + "&W=40&H=40";
                 }
                 if (!string.IsNullOrEmpty(productReview.ImageUrl5))
                 {
                     this.linkImageUrl5.Visible = true;
                     this.linkImageUrl5.HRef    = productReview.ImageUrl5;
                     this.imgImageUrl5.ImageUrl = "/Admin/PicRar.aspx?P=" + productReview.ImageUrl5 + "&W=40&H=40";
                 }
             }
         }
     }
 }