i am using mvc 5 with razor view to develop something.i am using partial view to show the data on search button. i need to show checkbox with every row in the table i.e in foreach statement in the view.
the code i tried -
<input type="checkbox" name="@item.KidFeeId" id = "@item.KidFeeId" value="@item.KidFeeId" />
@Html.CheckBoxFor(modelitem=> true,item.KidFeeId)
@Html.CheckBox("KidFeeId", new { value = item.KidFeeId })
@Html.CheckBox("checkname")
but any of the above code is unable to display the checkbox in browser.its blank space in the browser but on inspect the html it shows the code but not render it. can some one help me with the solution.