private void BindStaffs() { DropDown_Staff.DataSource = StaffMasterManagement.GetInstance.GetEmployeeList(); DropDown_Staff.DataValueField = StaffMasterManagement.GetInstance.ValueMember; DropDown_Staff.DataTextField = StaffMasterManagement.GetInstance.DisplayMember; DropDown_Staff.DataBind(); }
private void BindStaffs() { DropDown_Staff.DataSource = StaffMasterManagement.GetInstance.GetEmployeeList(); DropDown_Staff.DataValueField = StaffMasterManagement.GetInstance.ValueMember; DropDown_Staff.DataTextField = StaffMasterManagement.GetInstance.DisplayMember; DropDown_Staff.DataBind(); DropDown_Staff.Items.Insert(0, new ListItem(MicroConstants.DROPDOWNLIST_DEFAULT_ITEMTEXT, "0")); }