Irwsoft NETCore Asp

CheckBox
Brief Information
DescriptionA control that allows the user to select true or false value.
FeaturesBind one property only.
Text or description location.
CheckBox control
CheckBox tag-helper with text on right side.


The INA ASP.net CheckBox tag-helper is a tag-helper that allows the user to select true or false value. The checkbox has text or description and allows user to specify its location.


Text Location

  • Right
    Text location at right side
  • Left
    Text location at left side
  • Bottom
    Text location at bottom side
  • Top
    Text location at top side

Example : Input Active data of Person table with CheckBox


C# code for Person table

// 1) Sample code for Person table
public class Person
{
     public int ID { get; set;}
     public string FirstName { get; set;}
     public string LastName { get; set;}
     public GenderType Gender { get; set;}
     public DateTime DateOfBirth { get; set;}
     public int Age { get; set;}
     public string Address { get; set;}
     public string City { get; set;}
     public string Country { get; set;}
     public string IdentityCardNo { get; set;}
     public string BioData { get; set;}
     public string PictureUrl { get; set;}
     public bool Active { get; set;}  // 2) Input Active property of Person.
}


ASPX code for CheckBox

// 1) Defines the CheckBox control
<CheckBox ID="CB1" SkinStyle="SimpleGrey" Checked="true" Text="My Text on Right Side" TextLocation="Right">
     // 2) Defines a propertyto bind inside DataPropertyNames tag
     <irw:DataPropertyName Name="FileUrl" DataType="Boolean" />
</CheckBox>


Related Topics :


Irwsoft Data Ultimate Edition 4.0 supports data-schema extension (entity framework, linq to sql, simple class, and etc).