I'm new in MVC5 and i don't know much about dealing with view controls . I create an MVC project , but I need to get the data of checked Rows when submit in the controller , Please can anyone help me ??
this is my view code for the table
<table class="table" id="Table_Session">
<tr>
<th>
<label> </label>
</th>
<th>
<label>User Id</label>
</th>
<th>
<label>IP Address</label>
</th>
<th>
<label>Licence Type</label>
</th>
<th>
<label>Login Date</label>
</th>
<th>
<label>Login Time</label>
</th>
<th></th>
</tr>
@For Each item In Model
@<tr>
<td>
@If Not IsNothing(item) Then
@Html.Hidden("SessionID", item.SessionID)
@<input type="checkbox" id="chboxRow" value="item.SessionID" onclick="">
End If
</td>
<td>
@Html.DisplayFor(Function(modelItem) item.sUserId)
</td>
<td>
@Html.DisplayFor(Function(modelItem) item.IpAddress)
</td>
<td>
@Html.DisplayFor(Function(modelItem) item.licencetype)
</td>
<td>
@Html.DisplayFor(Function(modelItem) item.LoginDate)
</td>
<td>
@Html.DisplayFor(Function(modelItem) item.Logintime)
</td>
</tr>
Next
</table>
<div>
@Using Html.BeginForm("KillSession", "KillSession", FormMethod.Post)
@<input type="submit"
class="btn btn-default btn-xs"
value="Kill Session" />
End Using
@Using Html.BeginForm("s_Continue", "KillSession")
@<input type="submit"
class="btn btn-default btn-xs"
value="s_Continue" />
End Using
</div>