public void GetState()
 {
     try
     {
         InventoryServiceClient lclsservice = new InventoryServiceClient();
         List <GetState>        lstpatin    = lclsservice.GetState().ToList();
         ddlState.DataSource     = lstpatin;
         ddlState.DataValueField = "Invenkey";
         ddlState.DataTextField  = "InvenValue";
         ddlState.DataBind();
         ListItem lst = new ListItem();
         lst.Value = "0";
         lst.Text  = "Select";
         ddlState.Items.Insert(0, lst);
     }
     catch (Exception ex)
     {
         EventLogger log = new EventLogger(config);
         log.LogException(ex);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", Constant.VendorErrorMessage.Replace("<<Vendor>>", ex.Message), true);
     }
 }