protected void BindStaffDetails() { DataTable dtstaffDetails = TMSFacultyDetails.GetSearchStaffFacultyDetails(null, null, "Staff", Convert.ToInt64(HiddenID.Value)).Tables[0]; ListStaff.DataSource = dtstaffDetails; ListStaff.DataBind(); }
protected void BindPrincipalDetails() { try { DataTable dt = null; dt = TMSFacultyDetails.GetStaffFacultyDetails(null, 1, null).Tables[0]; if (dt.Rows.Count > 0) { ListStaff.DataSource = dt; ListStaff.DataBind(); } else { ListStaff.DataSource = null; ListStaff.DataBind(); } } catch { } }