private void InitLists() { Department dept = new Department(); Building bldg = new Building(); deptDropList.DataSource = dept.GetDepartment(); deptDropList.DataTextField = "DepartmentName"; deptDropList.DataValueField = "DepartmentAbbreviation"; deptDropList.DataBind(); custDeptDropList.DataSource = dept.GetDepartment(); custDeptDropList.DataTextField = "DepartmentName"; custDeptDropList.DataValueField = "DepartmentAbbreviation"; custDeptDropList.DataBind(); buildingDropList.DataSource = bldg.GetBuilding(); buildingDropList.DataTextField = "BuildingName"; buildingDropList.DataValueField = "BuildingAbbreviation"; buildingDropList.DataBind(); }
private void InitLists() { Department dept = new Department(); Building bldg = new Building(); deptDropList.DataSource = dept.GetDepartment(); deptDropList.DataTextField = "DepartmentName"; deptDropList.DataValueField = "DepartmentAbbreviation"; deptDropList.DataBind(); custDeptDropList.DataSource = dept.GetDepartment(); custDeptDropList.DataTextField = "DepartmentName"; custDeptDropList.DataValueField = "DepartmentAbbreviation"; custDeptDropList.DataBind(); buildingDropList.DataSource = bldg.GetBuilding(); buildingDropList.DataTextField = "BuildingName"; buildingDropList.DataValueField = "BuildingAbbreviation"; buildingDropList.DataBind(); }
protected void MakeDeptList() { deptListView.DataSource = dept.GetDepartment(); deptListView.DataBind(); }