in my list of objects i have few similar properties.
week1 week2 week3 week4 week5 ...
I would like to be able to display them in a table based on the selected number of weeks by the user.
My idea was to use the loop like below, but i can't add "i" to the @data.week#number
@for (var i = 0; i < Model.numberOfWeeks; i++)
{
<td>@[email protected]</td>
}
Is there a way i can use the incrementation of "i" to add it to the object name ?