Modelbinding when the model is repeated on the page -


i can't believe hard find but...

i have model repeated multiple times on page. default names fields same on both models doesn't seem bind properly. how make can use same model multiple times?

basic context of issue: picture having user can add unlimited contacts on same page. contact fields based on model (name address phone ect), , enumerate through model show each field each contact. first iteration works fine, after first contact, nothing seems passed model on post.

thanks ahead of time.

please @ following blog posts
http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/
http://zahidadeel.blogspot.com/2011/05/master-detail-form-in-aspnet-mvc-3-ii.html
http://ivanz.com/2011/06/16/editing-variable-length-reorderable-collections-in-asp-net-mvc-part-1/
http://blog.stevensanderson.com/2010/07/12/editing-a-variable-length-list-knockout-style/


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -