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>  

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...