protected void btnGiveFeedback1_Click(object sender, EventArgs e) { //Recording the feedback when user clicked to add feedback pnlFeedback1.Visible = false; //Retrieving the clicked feedback panel ItemBooking item = (ItemBooking)Session["retrieve"]; Review review = new Review(); //Receiving the written comment and rating to add in the database review.Feedback = tbxComment1.Text; review.Rating = Convert.ToInt32(tbxRatings1.Text); review.RestaurantID = item.RestaurantID; review.ReportStatus = ddlRestaurant.SelectedItem.Text; review.Date = DateTime.Now; review.Time = DateTime.Now; Customer c = (Customer)Session["user"]; review.CustEmail = c; //Adding feedback with method int add = ReviewDB.addReviewRestaurant(review); lbladded.Visible = true; lbladded.Text = "Feedback submitted successfully! Thanks for your feedback"; }