Tuesday, July 22, 2014

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>  

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...