@model List<Model.NameValuePair> @{int num = 1;} <table> <tr> @for (int i = 0; i < Model.Count; i++) { <td> @Model[i].Name <br /> @Model[i].Value @{num=num+1;} </td> if (num==3) { num = 0; <tr> </tr> } } </tr> </table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)