protected void ButtonView_Click(object sender, EventArgs e) { Diagnosis diagnosis = new Diagnosis(); GridViewDaiagnosis.DataSource = diagnosis.GetDiagnosisByDate(Session["DoctorEmail"].ToString(), CalendarDiagnosisDate.SelectedDate.ToString("yyyy-MM-dd")); GridViewDaiagnosis.DataBind(); }
protected void ButtonView_Click(object sender, EventArgs e) { Diagnosis diagnosis = new Diagnosis(); GridViewDaiagnosis.DataSource = diagnosis.GetDiagnosisByDateForPatient(Session["PatientEmail"].ToString(), CalendarDiagnosisDate.SelectedDate.ToString("yyyy-MM-dd")).Tables["diagnosis"]; GridViewDaiagnosis.DataBind();/// عشان اجيب البيانات }