//JIRA-746 CHanges by Ravi on 05/03/2019 -- End #endregion EVENTS #region METHODS private void LoadTerritoryList() { territorySearchBL = new TerritorySearchBL(); DataSet territoriesList = territorySearchBL.GetInitialData(out errorId); territorySearchBL = null; if (territoriesList.Tables.Count != 0 && errorId != 2) { Session["FuzzyTerritorySearchSellerGrpList"] = territoriesList.Tables[0]; Session["TerritoyrSearhCountryList"] = territoriesList.Tables[2]; ddlTerritoryType.DataSource = territoriesList.Tables[1]; ddlTerritoryType.DataTextField = "territory_description"; ddlTerritoryType.DataValueField = "territory_type"; ddlTerritoryType.DataBind(); ddlTerritoryType.Items.Insert(0, new ListItem("-")); ddlGridTerritoryType.DataSource = territoriesList.Tables[1]; ddlGridTerritoryType.DataTextField = "territory_description"; ddlGridTerritoryType.DataValueField = "territory_type"; ddlGridTerritoryType.DataBind(); ddlGridTerritoryType.Items.Insert(0, new ListItem("-")); } else if (territoriesList.Tables.Count == 0 && errorId != 2) { Session["FuzzyTerritorySearchSellerGrpList"] = null; } else { ExceptionHandler("Error in loading territories", string.Empty); } }