The following code does not compile
<ul>
<%
foreach( var row in SomeDataTable.Rows)
{
%>
<li>
<%= Html.ActionLink( row["field1"].ToString(), "action", new { } ) %>
</li>
<%
}v
%>
</ul>
the error is - cannot apply indexing with [] to an expression of type 'object'
var is supposed to be implicit type ?
What gives ?
NOTE - I know it is bad practice to use DataTable/Dataset as is etc etc so hold your horses on that one if you can please :)