How binding this (dynamic
) table to IList<IList<string>>
or another type
html:
@using (Html.BeginForm())
{
<table>
<thead>
<tr><th>column1</th><th>column2</th></tr>
</thead>
<tbody>
@for (int i = 0; i < 10; i++)
{
<tr><td><input type="text" value="@i" name="column1_@(i)"/></td><td><input type="text" value="@(Guid.NewGuid())" name="column2_@(i)"/></td></tr>
}
</tbody>
</table>
<input type="submit" value ="send"/>
}
I need get columns and rows
Update:
maybe I can take String[][]