ASP.Net MVC4 bind a “create view” to a model that contains List

后端 未结 2 559
独厮守ぢ
独厮守ぢ 2021-01-13 13:59

Hello out there in internet land, I have an interesting conundrum for you:

Is it possible to bind a view for creating an object, if that object contains a list of ot

2条回答
  •  既然无缘
    2021-01-13 15:06

    Read this article:

    http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx

    Then read this one:

    http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/

    The articles are for MVC2, but will work in 3 and 4.

提交回复
热议问题