protected void Page_Load(object sender, EventArgs e) { InventoryServiceClient isc = new InventoryServiceClient(); if (!IsPostBack) { if (isc.GetDepartmentNames() != null) { departments.DataSource = isc.GetDepartmentNames(); foreach (string d in isc.GetDepartmentNames()) { departments.Items.Add(d); } } } }