private void TestScheduleFill() { TestScheduleBiz scheduleBiz = new TestScheduleBiz(); List <TestSchedule> testSchedules = scheduleBiz.GetTestSchedules(); if (testSchedules != null && testSchedules.Count > 0) { GridView1.DataSource = testSchedules; GridView1.DataBind(); } else { GridView1.DataSource = null; GridView1.DataBind(); } }
private void TestScheduleDropDownFill() { TestScheduleBiz scheduleBiz = new TestScheduleBiz(); List <TestSchedule> tests = scheduleBiz.GetTestSchedules(); if (tests != null && tests.Count > 0) { for (int i = 0; i < tests.Count; i++) { ddl_TestSchedule.Items.Add(tests[i].ID.ToString()); } ddl_TestSchedule.Items.Insert(0, new ListItem("Select Test", " ")); } else { ddl_TestSchedule.Items.Clear(); } }