Hi,
I have a view class containing a list, this list describes the available files that the user has uploaded (displayed using the html helper).
To save this data in the view, I added the following to the view:
<%: Html.HiddenFor(model => model.ModelView.Files)%>
I was hoping the mode.ModelView.Files list would be returned to the action on submit, but is it not?
Is it impossible to have a list as a hidden field?
Additional information: The user sends a pair of files that are saved in the service when the saved thay is referred to as a GUID, and this list is sent back to the user to display the saved images. The user makes any changes to the form and clicks submit again when the list of images is empty, when you get into the control action, why?
Best regards
asp.net-mvc-2 hidden-field
Banshee
source share