示例#1
0
 private void FillDropDown()
 {
     ddlCustJobPosition.DataSource     = JobPositionService.GetActiveJobPositions();
     ddlCustJobPosition.DataTextField  = "Name";
     ddlCustJobPosition.DataValueField = "ID";
     ddlCustJobPosition.DataBind();
 }
示例#2
0
        private void FillDropDown()
        {
            ddlJobPosition.DataSource     = JobPositionService.GetActiveJobPositions();
            ddlJobPosition.DataTextField  = "Name";
            ddlJobPosition.DataValueField = "ID";
            ddlJobPosition.DataBind();

            ddlInformationSource.DataSource = InformationSourceService.GetInformationSources();
            ddlInformationSource.DataBind();
            ddlInformationSource.Items.Insert(0, new DropDownListItem(String.Empty));
        }