protected void btnGiveFeedback0_Click(object sender, EventArgs e) { //Recording the feedback when user clicked to add feedback pnlFeedback0.Visible = false; ItemBooking item = (ItemBooking)Session["retrieve"]; Review review = new Review(); //Receiving the written comment and rating to add in the database review.Feedback = tbxComment0.Text; review.Rating = Convert.ToInt32(tbxRatings0.Text); review.AttractionID = item.TicketID.Attraction; review.ReportStatus = ddlTicket.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.addReviewTicket(review); lbladded.Visible = true; lbladded.Text = "Feedback submitted successfully! Thanks for your feedback"; }