My controller:
IList<OrderRow> emailOrders = ParseIncomingEmails();
return View("ImportEmailedOrders.cshtml", emailOrders);
My aspx page allows me to iterate with:
foreach (OrderRow orderRow in Model)
I’ve tried various combinations of ‘@inherits’ and ‘@model ….’ directives without finding the correct syntax to achieve the same looping mechanism for a Razor view.
thx
You should only need to put
at the top of your page.
Is the problem that you dont have the fully qualified namespace for OrderRow?
i.e.
You can add the namespace in the web config like