Skip to content
Loading
DataType Bit in Sql
  • Rijwan Ansari
    Hi
     
    You can use checkbox instead of text box as
     
     
    1. "checkbox" id="txtIsActive" Name="IsActive" placeholder="Active">  
  • Satya Karki
    Hi,
     
    Firstly, remove the range validation in bool datatype.
    And use input type check box to bind with bool.
    1. <input type="checkbox"  id="txtIsActive" Name="IsActive" placeholder="Active">  
     
    Model:
    1. [Required]  
    2. public bool IsActive { get; set; }