In a project I inherited, there is a country ddl that defaults to "United States of America" and when it's filled, a state list is supposed to populate, but doesn't. I need help determining if the functionality to populate the state list is already in there;
and if not, some help on how to create it. I've stepped through the following code and haven't found what I need. Thanks in advance for any help.
/// <summary>
/// Used to select the correct values based on the properties values
/// </summary>
private void SetupDropDownsForUser()
{
//look for the stateid in the list
if (CountryID.HasValue)
{
uxCountry.ClearSelection();
ListItem liFind = uxCountry.Items.FindByValue(CountryID.ToString());
if (liFind != null)
liFind.Selected = true;
uxState.Items.Clear();
uxState.DataSource = Classes.StateAndCountry.State.GetStatesByCountryIDWithShipTo(CountryID.Value, UseShipTo);
uxState.DataTextF ...
Go to the complete details ...