private void BindCountry() { CurrentDesiredJobBAL currentjobBAL = new CurrentDesiredJobBAL(); DataSet ds = new DataSet(); try { ds = currentjobBAL.GetCountryBAL(); if (ds != null) { ddlPreferredCountry.DataSource = ds; ddlPreferredCountry.DataTextField = "CountryName"; ddlPreferredCountry.DataValueField = "CountryId"; ddlPreferredCountry.DataBind(); ddlPreferredCountry.Items.Insert(0, new ListItem("--Select--", "0")); } } catch (Exception) { // throw; } }