我想将一个数组数据绑定到ASP.NET MVC视图中,我该怎么做?
抱歉我的问题表述不够清晰。目前,我创建了一个自定义对象(不是数组),我尝试将其传递给View,但是出现错误:
"The model item passed into the dictionary is of type 'ContactView' but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable'"
抱歉我的问题表述不够清晰。目前,我创建了一个自定义对象(不是数组),我尝试将其传递给View,但是出现错误:
"The model item passed into the dictionary is of type 'ContactView' but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable'"