protected void AddressLgaCombo_Callback(object sender, CallbackEventArgsBase e) { AddressLgaCombo.Items.Clear(); List <LGA> lgas = GetLgas(e.Parameter); AddressLgaCombo.DataSource = lgas; AddressLgaCombo.TextField = "LGAName"; AddressLgaCombo.ValueField = "LGAId"; AddressLgaCombo.DataBind(); }
private void LoadAddressLgas(string stateId) { AddressLgaCombo.Items.Clear(); if (string.IsNullOrEmpty(stateId)) { return; } AddressLgaCombo.DataSource = LGA.GetLGAs(stateId).OrderBy(l => l.LGAName); AddressLgaCombo.TextField = "LGAName"; AddressLgaCombo.ValueField = "LGAId"; AddressLgaCombo.DataBind(); }