Greetings,
I'm a bit of an MVC noob. I'm trying to create a simple application where a client logs in and votes on something. Nothing complicated. I have a strongly typed View where I pass a VoteModel class this class contains a collection of VoteStructures. The Vote structure just contains an (int) ID, a description, and if it's selected.
So in my view I have
<% foreach (var item in Model.votes) { %>
<%= Html.RadioButton("Destination", item.ID, item.SelectedInd) + " " + item.Destination %> <br />
<% } %>
When I perform a POST to get the submitted results my action method takes the strongly typed ViewModel back but the original vote structures collection object isn't populated.
Why is that? And how to do I go about fixing this?
I really appreciate the help
Brian