예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
 protected void MakeDeptList()
 {
     deptListView.DataSource = dept.GetDepartment();
     deptListView.DataBind();
 }