ASP.NET MVC how to bind custom model to view
Posted
by Smallville
on Stack Overflow
See other posts from Stack Overflow
or by Smallville
Published on 2009-05-15T13:49:02Z
Indexed on
2010/04/12
8:23 UTC
Read the original article
Hit count: 645
I would like bind an array data to view in ASP.NET MVC, how can I do that?
sorry for not clear about my question. Right now, I creat a custom object(not array), I tried to pass it to View, but the error shows
"The model item passed into the dictionary is of type 'ContactView' but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable"
© Stack Overflow or respective owner