In my controller I generated a SelectList that I pass to the dropdown helper:
<%= Html.DropDownList("abc123", Model.SomeList) %>
I look at the querystring for a value, which is a ID.
I then loop through all the items in the SelectList and if it is equal to the ID, I do:
item.Selected = true;
The controller action then passes this SelectList to the view and then to the Html helper.
In debug mode I can see the value does get set to true, but the html renders without selecting the item.
What can the issue be?