Exemplo n.º 1
0
        private void BindCityZonePopPanel()
        {
            SiteRepository siteRepository = new SiteRepository();


            int selectedValue;

            if (ddlAddCityName.SelectedIndex != 0)
            {
                selectedValue = Convert.ToInt32(ddlAddCityName.SelectedValue);
            }
            else
            {
                selectedValue = 0;
            }
            ddlAddCityZone.DataSource     = siteRepository.CityZone(selectedValue);
            ddlAddCityZone.DataTextField  = "ZoneName";
            ddlAddCityZone.DataValueField = "ZoneId";
            ddlAddCityZone.DataBind();
            ddlAddCityZone.Items.Insert(0, "--Select Zone--");
        }