private void GetCurrentIPDPatients() { Doctor_GetCurrentIPDPatientsBL objDoctor_GetCurrentIPDPatientsBL = new Doctor_GetCurrentIPDPatientsBL(); ds = objDoctor_GetCurrentIPDPatientsBL.Doctor_GetCurrentIPDPatients(Convert.ToInt32(Session["doctorId"].ToString())); if (ds.Tables[0].Rows.Count != 0) { GridView1.DataSource = ds; GridView1.DataBind(); } else { Label1.Visible = true; } }
private void GetCurrentIPDPatients() { Doctor_GetCurrentIPDPatientsBL objDoctor_GetCurrentIPDPatientsBL = new Doctor_GetCurrentIPDPatientsBL(); ds=objDoctor_GetCurrentIPDPatientsBL.Doctor_GetCurrentIPDPatients(Convert.ToInt32(Session["doctorId"].ToString())); if(ds.Tables[0].Rows.Count != 0) { GridView1.DataSource=ds; GridView1.DataBind(); } else Label1.Visible=true; }