protected void LinkButton1_Click(object sender, EventArgs e) { LinkButton linkbutton = sender as LinkButton; GridViewRow row = linkbutton.NamingContainer as GridViewRow; int treatmentMedicineId = Convert.ToInt32(GridView3.DataKeys[row.RowIndex].Value.ToString()); Doctor_DeleteOPDTreatmentMedicineDL objDeleteTreatmentMedicineBL = new Doctor_DeleteOPDTreatmentMedicineDL(); objDeleteTreatmentMedicineBL.Doctor_DeleteOPDTreatmentMedicine(treatmentMedicineId); Doctor_GetOPDTreatmentMedicineBL objGetOPDTreatmentMedicineBL = new Doctor_GetOPDTreatmentMedicineBL(); GridView3.DataSource = objGetOPDTreatmentMedicineBL.Doctor_GetOPDTreatmentMedicine(appointmentToken); GridView3.DataBind(); }
public void Doctor_DeleteOPDTreatmentMedicine(int treatmentMedicineId) { Doctor_DeleteOPDTreatmentMedicineDL objDeleteTreatmentMedicineDL = new Doctor_DeleteOPDTreatmentMedicineDL(); objDeleteTreatmentMedicineDL.Doctor_DeleteOPDTreatmentMedicine(treatmentMedicineId); }