How to handle `PartialRender` Models?

后端 未结 1 1242
梦毁少年i
梦毁少年i 2021-01-07 10:04

if by any means I happen to have

public class DoorsModel
{
    public DoorsModel() { }

    public HttpPostedFileBase Image { get; set; }
    public String D         


        
相关标签:
1条回答
  • 2021-01-07 11:01

    Just had the same problem. Found this website: http://weblogs.asp.net/nmarun/archive/2010/03/13/asp-net-mvc-2-model-binding-for-a-collection.aspx

    Essentially it is all about <input type="file" value="Upload file" name="Doors[<%: i %>].FrontFile" id="Doors[<%: i %>].FrontFile">

    0 讨论(0)
提交回复
热议问题