ASP.NET MVC: Binding a Complex Type to a Select

前端 未结 3 1548
北恋
北恋 2020-12-28 16:30

I am trying to work out if there is built-in support for binding complex types to form elements.

To use a common hypothetical situation: I have a Product entity that

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 17:25

    I haven't yet tried the DefaultModelBinder for complex types, but you could always use MvcContrib's CastleBind (borrowed from the Castle Project) which gives you complex type binding easily, including arrays.

    See http://blogger.forgottenskies.com/?p=258

提交回复
热议问题