protected void ButtonOK_Click(object sender, EventArgs e) { DateTime start = (DateTime)dataRow["appointment_start"]; DateTime end = (DateTime)dataRow["appointment_end"]; int barber = (int)dataRow["barberID"]; string customerName = TextBoxName.Text; string status = DropDownListStatus.SelectedValue; int appointmentId = Convert.ToInt32(Request.QueryString["id"]); UpdateAppointment(appointmentId, start, end, customerName, status); ModalHelper.Close(this, "OK"); }
protected void ButtonOK_Click(object sender, EventArgs e) { int appointmentId = Convert.ToInt32(Request.QueryString["id"]); // retrieve customerId from session value int customerId = Convert.ToInt32(Session[customerIdSessionStr].ToString()); DataRow customerRecord = LoadCustomerData(customerId); string customerName = $"{customerRecord["cust_first_name"]} {customerRecord["cust_last_name"]}"; RequestAppointment(appointmentId, customerName, customerId); ModalHelper.Close(this, "OK"); }
protected void ButtonCancel_Click(object sender, EventArgs e) { ModalHelper.Close(this); }