public void BindFacility() { try { InventoryServiceClient lclsservice = new InventoryServiceClient(); List <GetFacilityShortName> lstcategory = lclsservice.GetFacilityShortName().ToList(); ddlFacilityID.DataSource = lstcategory; ddlFacilityID.DataValueField = "FacilityID"; ddlFacilityID.DataTextField = "FacilityShortName"; ddlFacilityID.DataBind(); ListItem lst = new ListItem(); lst.Value = "0"; lst.Text = "Select"; ddlFacilityID.Items.Insert(0, lst); } catch (Exception ex) { } }