RADIO BUTTON FOR RAZOR VIEW:MVC DOTNET

Code for xxx.cshtml:

<tr>
<td>
Cleanliness of the equipment
</td>
<td style="padding-left:15px">
:
</td>
<td style="padding-left:15px">
@Html.RadioButtonFor(model => model.Cleanlinessofequipment,"Pass")&nbsp;&nbsp;Pass&nbsp;&nbsp;&nbsp;
@Html.RadioButtonFor(model => model.Cleanlinessofequipment,"Fail")&nbsp;&nbsp;Fail&nbsp;&nbsp;&nbsp;
@Html.ValidationMessageFor(model => model.Cleanlinessofequipment)
</td>
</tr>

Leave a Reply

Your email address will not be published. Required fields are marked *