Ejemplo n.º 1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            Reservations reservation = new Reservations();

            reservation.ArrivalDate    = Convert.ToDateTime(tboxStartDate.Text);
            reservation.DepartureDate  = Convert.ToDateTime(tboxEndDate.Text);
            reservation.RoomSelection  = ddlRoom.SelectedValue;
            reservation.CateringOption = ddlCatering.SelectedValue;
            reservation.CustomerName   = tboxCustomerName.Text;
            reservation.Phone          = tboxPhoneNumber.Text;
            reservation.Email          = tboxEmail.Text;
            reservation.AddInfo        = tboxAdditionalInfo.Text;


            Session["Reservation"] = reservation;
            Response.Redirect("~/Confirm.aspx");
        }