Hi, not usually one to ask for help but 2 days on this and not really getting anywhere.
I have a view that gets posted back to my controller and I can call updatemodel pass in the FormCollection and everything in the view gets updated and works great etc...
The problem is, this view contains several PartialViews that I just can't seem to get the UpdateModel helper to update. All this stuff is strongly typed, I mean my overall viewmodel has properties that expose the data to my partialviews.
(just for clarity see below code, "Model" has a property called "AreaListViewModel", which has a property called Areas. "AreaList" is the partialview/usercontrol).
<% Html.RenderPartial("AreaList", Model.AreaListViewModel.Areas); %>
I'm convinced it is either something to do with the way I add the data to my partialview, like HtmlTextBoxFor syntax. OR the UpdateModel syntax.
As mentioned I get my form data back as a "FormCollection".
[AcceptVerbs(HttpVerbs.Post)]public ActionResult Details(int Id, FormCollection formData)
Many thanks for any help/pointers.
View Complete Post