I'm listing the data in database by using checkbox, but the checkbox need to be locked. How Can I do this?
My code looks like the following:
<td align="center">
@Html.CheckBox("WordSwap",@item.WordSwap)
</td>
I'm listing the data in database by using checkbox, but the checkbox need to be locked. How Can I do this?
My code looks like the following:
<td align="center">
@Html.CheckBox("WordSwap",@item.WordSwap)
</td>
Presuming that you mean read-only
, you can use the following syntax:
@Html.CheckBox("WordSwap", @item.WordSwap, new { @disabled = "disabled" })