Good resources for model binding in ASP.NET MVC3 with C#? -


i know how model binding works in asp.net mvc3. since still waiting professional asp.net mvc3 book , cannot find googling it, last hope.

i know how perform binding simple objects when comes viewmodels, nested list<t>, unable perform binding.

thanks

francesco

update:

for clarification, mean model binding view action methods, thanks

the question not clear, i'll address think asking on.

in cases view model entity has property of list<t> or other enumerable, not automatically bound resulting model instance available in action method marked httppost.

you need to find place persist data, or, re-query in action method , update posted instance.

the reliable way have found involves serializing data json , putting values hidden form fields, when this, view models no longer have list property, rather, serialized properties.

this dilemma forces me re-evaluate need data available on form posts, , in cases because have tried reuse view model across views have different requirements.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -