Exemple #1
0
    /// <summary>
    /// Bind the County from ZnodeZipcode table
    /// </summary>
    private void BindCounty()
    {
        TaxRuleAdmin taxrule = new TaxRuleAdmin();
        DataSet _countylist = taxrule.GetCountyCodeByStateAbbr(lstStateOption.SelectedValue);

        lstCounty.DataSource = _countylist;
        lstCounty.DataTextField = "CountyName";
        lstCounty.DataValueField = "CountyFIPS";
        lstCounty.DataBind();
        ListItem li = new ListItem("Apply to ALL Counties", "0");
        lstCounty.Items.Insert(0, li);
    }