asp.net mvc checkbox binding with model

You can use this sample:

  <td>  
         @Html.LabelFor(model => model.IsActive)  
       </td>  
       <td>  
          @Html.CheckBoxFor(model => model.IsActive, new { @style = "z-index: 99999 !important; margin-top: 0px;" })  
          @Html.ValidationMessageFor(model => model.IsActive)  
     </td>  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report