Exemple #1
0
        private void fillgvCountryList()
        {
            var result = _objMasterData.GetAllCountries();

            ddlCountry.DataSource     = result;
            ddlCountry.DataTextField  = "Country_Name";
            ddlCountry.DataValueField = "Country_Id";
            ddlCountry.DataBind();
        }
 private void fillcountries(DropDownList ddl, string option)
 {
     //ddl.DataSource = objMasterDataDAL.GetMasterCountryData(option);
     //ddl.DataValueField = "Country_ID";
     //ddl.DataTextField = "Name";
     ddl.DataSource     = _objMasterSVC.GetAllCountries();
     ddl.DataValueField = "Country_Id";
     ddl.DataTextField  = "Country_Name";
     ddl.DataBind();
 }
        private void fillcountries()
        {
            ddlCountry.Items.Clear();
            var countryList = _objMasterSVC.GetAllCountries();

            ddlCountry.DataSource     = countryList;
            ddlCountry.DataTextField  = "Country_Name";
            ddlCountry.DataValueField = "Country_Id";
            ddlCountry.DataBind();
            InsertDefaultValuesInDDL(ddlCountry);
            ddlCountry.Items.Insert(1, new ListItem("-ALL Countries-", "1"));
        }
        private void fillcountrydropdown(string source, DropDownList ddl)
        {
            var result = _objMasterData.GetAllCountries();

            if (source == "search")
            {
                //ddl.Items.Clear();
                ddl.DataSource     = result;
                ddl.DataValueField = "Country_Id";
                ddl.DataTextField  = "Country_Name";
                ddl.DataBind();
                ddl.Items.Insert(0, new ListItem("---ALL---", "0"));
            }
        }
        private void fillcountrydropdown(string source)
        {
            //var resSet = masterdata.GetMasterCountryData("");
            var result = _objMasterData.GetAllCountries();

            if (source == "search")
            {
                ddlCountry.DataSource     = result;
                ddlCountry.DataValueField = "Country_Id";
                ddlCountry.DataTextField  = "Country_Name";
                ddlCountry.DataBind();
                ddlCountry.Items.Insert(0, new ListItem("---ALL---", ""));
            }
        }
Exemple #6
0
        private void fillcountrydropdown()
        {
            //var resSet = masterdata.GetMasterCountryData("");
            //ddlAddCountry.DataSource = resSet;
            //ddlAddCountry.DataValueField = "Country_ID";
            //ddlAddCountry.DataTextField = "Name";
            //ddlAddCountry.DataBind();

            var result = _objMasterData.GetAllCountries();

            ddlAddCountry.DataSource     = result;
            ddlAddCountry.DataValueField = "Country_Id";
            ddlAddCountry.DataTextField  = "Country_Name";
            ddlAddCountry.DataBind();
        }