protected void LinkButton4_Click(object sender, EventArgs e) { foreach (GridViewRow row in GridView1.Rows) { if (row.RowType == DataControlRowType.DataRow) { CheckBox cb = (row.Cells[0].FindControl("CheckBox1") as CheckBox); if (cb.Checked) { string appointmentToken = row.Cells[3].Text; CancelAppointmentBL objCancelAppointmentBL = new CancelAppointmentBL(); objCancelAppointmentBL.CancelAppointment(appointmentToken); } } Label2.Visible = true; Response.Redirect("ReceptionistViewCalendarAppointments.aspx?date=" + Request.QueryString["Date"].ToString()); } }
public void CancelAppointment(string appointmentToken) { CancelAppointmentBL objCancelAppointmentBL = new CancelAppointmentBL(); objCancelAppointmentBL.CancelAppointment(appointmentToken); }