protected void getAllStudents() { BECourseAdmin objBECourseAdmin = new BECourseAdmin(); BCourseAdmin objBCourseAdmin = new BCourseAdmin(); objBECourseAdmin.IntProviderID = Convert.ToInt32(Session[EnumPageSessions.USERID]); objBCourseAdmin.BGetAllStudents(objBECourseAdmin); if (objBECourseAdmin.DtResult != null && objBECourseAdmin.DtResult.Rows.Count > 0) { rcbStudents.DataSource = objBECourseAdmin.DtResult; rcbStudents.DataBind(); } else { rcbStudents.DataSource = new string[] { }; rcbStudents.DataBind(); } }