I have an assignment where I have to implement the dropdown for the US states if the 'United States' is selected in the countries dropdown.
For that I implemented two controls, the textbox for non us states and the dropdown for the us states
<input class="form-control" type="text" asp-for="BIS232Request.JSONData.RequestingOrg.State" />
<select class="form-control" asp-for="BIS232Request.JSONData.RequestingOrg.State" id="HeadquartersState"></select>
<span asp-validation-for="BIS232Request.JSONData.RequestingOrg.State" class="alert-danger"></span>
However, there is only one model property for the state
[Required]
[DisplayName("State")]
public string State { get; set; }
How can I reference and properly validate the state accounting for both the textbox and the dropdown
Thank you very much for your help!