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 Page_Load(object sender, EventArgs e) { this.SetCurrentMsg(); dept = new Department(); bldg = new Building(); if (!IsPostBack) { this.MakeDeptList(); this.MakeBldgList(); } //this.SetCurrentMsg(); //currentMessageLabel.Text = motd.getMessage(); }