I have a IList as a property named Tags in my model. How do I name the files for display and editor templates to respect it when I call
IList
Tags
EditorFor or DisplayFor is access ViewData.Model property.
Sample solution
<% foreach(var tag in Model.Tags) { %> <%= Html.EditorFor(m => tag) %> <% } %>
Other solution
<% for (var i=0;i <%= Html.EditorFor(m => m.Tags[i]) %> <% } %>
Hope this code!