protected void btnSearch_Click(object sender, EventArgs e) { String searchBy = dropDownSearch.SelectedValue.ToString(); String filterBy = txtBoxFilterBy.Text.ToString(); WorkflowsService wfservice = new WorkflowsService(); List <EmployeeSearchDTO> employeesearchDtos = wfservice.SearchEmployee(searchBy, filterBy); ListBox1.DataSource = employeesearchDtos; ListBox1.DataTextField = "id"; ListBox1.DataValueField = "name"; ListBox1.DataBind(); }