1. In HTML>
2. In C# >
public bool Post(List<Attedance_Stu> st_li, Attedance status)
{
}
<tbody>
@for (int i = 0; i < data_list.Count; i++)
{
<tr>
<td class="table-user">
<input type="hidden" name="st_li[@(i)].AdmNo" value="@data_list[i].AdmNo" />
@data_list[i].AdmNo
@*@Html.TextBox("Attedance_Stu[" + @i + "].AdmNo", @data_list[i].AdmNo)*@
</td>
<td class="table-user">
@data_list[i].FIRST_NM
</td>
<td>
<input type="checkbox" name="st_li[@(i)].select_status" value="true" />
</td>
</tr>
}
</tbody>
2. In C# >
public bool Post(List<Attedance_Stu> st_li, Attedance status)
{
}
No comments:
Post a Comment