Esempio n. 1
0
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        int countryid = -1;

        if (this.DropDownList1.Items.Count > 0)
        {
            countryid = int.Parse(this.DropDownList1.SelectedValue.ToString());
            CommonDataBLL.BindCountryBankByCountryID(countryid, ddlBank);
        }
    }
Esempio n. 2
0
    private void BindCountryBank()
    {
        DataTable dtct = StoreInfoEditBLL.bindCountry();

        foreach (DataRow item in dtct.Rows)
        {
            this.DropDownList1.Items.Add(new ListItem(item["name"].ToString(), item["id"].ToString()));
        }
        int countryid = -1;

        if (this.DropDownList1.Items.Count > 0)
        {
            countryid = int.Parse(this.DropDownList1.SelectedValue.ToString());
            CommonDataBLL.BindCountryBankByCountryID(countryid, ddlBank);
            _hasBind = true;
        }
    }