private void LoadPrograms() { using (var helper = new DbHelper.AcademicPlacement()) { var rList = helper.ListRunningRunningClasses(AcademicYearId, SessionId); //uncomment this //ProgramSelection1.LoadStructure(rList, AcademicYearId, SessionId, ExamId); } }
public void LoadPrograms() { using (var helper = new DbHelper.AcademicPlacement()) { var classes = helper.ListRunningRunningClasses(AcademicYearYearId, SessionId);//.OrderBy(p=>p.ProgramBatch.Program.Name); if (classes.Any()) { pnlSessionPrograms.Visible = true; } ListView1.DataSource = classes; ListView1.DataBind(); } }