protected void btnSubmit_Click(object sender, EventArgs e)
 {
     string FullName = "";
     if (Session["Customer"] != null)
     {
         Customer c = (Customer)Session["Customer"];
         FullName = c.FirstName + " " + c.LastName;
     }
     else
     {
         FullName = txtName.Text;
     }
     try
     {
         Review r = new Review();
         r.FullName = FullName;
         r.Comment = txtComment.Text;
         r.DateCreated = DateTime.Now;
         r.Product_ID = ToSQL.SQLToInt(Request.QueryString["ProductId"]);
         int i = new ReviewRepo().CreateReview(r);
         Response.Redirect(Request.Url.PathAndQuery + "#divreview");
     }
     catch
     {
     }
 }
 private void LoadReview()
 {
     int ProductId = ToSQL.SQLToInt(Request.QueryString["ProductId"]);
     List<Review> Reviews = new ReviewRepo().GetByProductId(ProductId);
     rptReview.DataSource = Reviews;
     rptReview.DataBind();
 }