Right now I have this code which enumerates to a singe column table all the way down the page.
Is there a way to make it two colums next to each other all the way to the end?
<table>
<% foreach (var item in Model)
{ %>
<tr>
<td>
<%=Html.Encode(item.PartNo)%>
</td>
</tr>
<% } %>
</table>
You can just change the foreach loop to a for loop for more flexibility:
If you’re doing this a lot, you could consider turning it into an HTML helper to output any number of columns.