I'm editing the vbhtml file to loop through records to match in a small demo app I'm making,
Here's how it seems to work in C#:
@foreach (var item in Model.Enrollments)
@Html.DisplayFor(modelItem => item.Course.Title)
@Html.DisplayFor(modelItem => item.Grade)
@Html.DisplayFor(modelItem => item.Course.Credits)
I attempted to convert it to vb, but I'm getting errors... I'm sure it's simple but I'm completely new to mvc...
@For Each item In Model.Times
It gives errors on the HTML tags "<th>" and "<th/>" :
"Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement."
Any help greatly appreciated.