Rendering Partial Views in a Loop in MVC3
问题 I have a pretty simple scenario, Model for my view is a List. Loop through List like @foreach(CustomObject obj in Model) { Html.Partial("_TrackingCustomObject",obj) } So i was expecting to have number of partial views according to my list. Partial View has been developed accordingly. There is no error on page. It just does not show any data that is supposed to display by partial views. What is the reason of not showing any data? 回答1: You are missing an @: @foreach(CustomObject obj in Model) {