コード例 #1
0
 private void PopulateOtherStates(string Country)
 {
     this.BillOtherState.Items.Clear();
     this.BillOtherState.DataSource     = AddressModel.GetStates(Country);
     this.BillOtherState.DataTextField  = "Key";
     this.BillOtherState.DataValueField = "Value";
     this.BillOtherState.DataBind();
 }
コード例 #2
0
    private void PopulateOtherStates()
    {
        this.AddressModel.Country = BillOtherCountry.SelectedValue;

        this.BillOtherState.Items.Clear();
        this.BillOtherState.DataSource     = AddressModel.GetStates();
        this.BillOtherState.DataTextField  = "Key";
        this.BillOtherState.DataValueField = "Value";
        this.BillOtherState.DataBind();
    }