I have a select list like the one below, and I need to post every option's value from the select list to the controller. Is it possible to get these values somehow?
Select List
<select size="10" id="SelectedSortOrderOptions" name="SelectedSortOrderOptions">
<option value="Parcel Number">Parcel Number</option>
<option value="Receipt Number">Receipt Number</option>
<option value="Municipality">Municipality</option>
</select>
Could I do something similar to this in my controller?
public IActionResult Submit(List<string> SelectedSortOrderOptions)
{
...
}
I need to get a new list of strings containing the values Parcel Number, Receipt Number, and Municipality.
