I am trying to get a drop-down to show when the value in state is set to Ohio. I have it working when I do the event once the page is loaded (i.e. click state and choose Ohio). I want it to automatically show the _cboCounty on page load if the value of the state from the database is Ohio. I tried the following code in the SetDefaults() in AddressControl.cs but with no luck:
Code:if (_cboState.DataValueField == "OH") { ShowCounty = true; } else { ShowCounty = false; }